New answers tagged kvm
3
In maas 1.2 the virsh power type requires only the Address and Power ID.
The libvirt-bin package needs to be installed to get the virsh command
the Power ID is the name of the virtual machine shown by sudo virsh list --all
The address is a normal libvirt connect string:
qemu+ssh://root@10.0.0.2/system
or
qemu:///system
If you want to use ssh ...
1
Driver and Username are not required for virsh. They will be deleted eventually.b
1
Create a VM with a size (6G below) (it will be small until the install is done into it)
qemu-img create myvm.img -f qcow2 6G
Then install the iso into your vm
kvm -m 750 -cdrom ${PWD}/whatever.iso -boot d myvm.img
And run it in 990M of memory:
kvm -m 990 myvm.img
0
An example:
/dev/sdb2 is the /boot partition. It is 100 MB, which is rather small. To increase this ext4 partition on a running system do (as root, or sudo):
umount /boot
parted /dev/sdb
(parted) print
Model: ATA Patriot Torqx 2 (scsi)
Disk /dev/sdb: 32.0GB
Sector ...
0
Try -watchdog-action
Set the guest OS to shutdown when an acpi signal shutdown is received. Send acpi signal using -watchdog-action
Usage:
-watchdog-action action
The action controls what QEMU will do when the watchdog timer
expires. The default is "reset" (forcefully reset the guest).
Other possible actions are: ...
3
Yes, this is done automatically, according to this fixed bug: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/350936 See also: http://serverfault.com/questions/200751/can-kvm-suspend-or-shutdown-guests-automatically-on-host-shutdown
Top 50 recent answers are included
