Linux - Virtualization and CloudThis forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
The host machine has 4 drives:
sda 64GB SSD (Main OS)
sdb 64GB SSD (dd copy of sda)
sdc 1.2 TB SSD (1st guest)
sdd 1.2 TB SSD (2nd guest)
When the host machine reboots I will sometimes loose the connection to the guest VM
Code:
tsadmin@lw-kvm-00:~$ virsh -c qemu:///system list
Id Name State
----------------------------------------------------
tsadmin@lw-kvm-00:~$
but the XML files are there
Code:
tsadmin@lw-kvm-00:~$ ls -l /etc/libvirt/qemu/
total 16
drwxr-xr-x 2 root root 4096 Mar 31 13:38 autostart
-rw------- 1 root root 2760 Apr 1 07:10 lkr-test-elastic00.xml
-rw------- 1 root root 2760 Mar 31 12:59 lkr-test-elastic01.xml
drwxr-xr-x 3 root root 4096 Mar 31 11:58 networks
if I try to redefine using the xml
Code:
tsadmin@lw-kvm-00:~$ sudo virsh define /etc/libvirt/qemu/lkr-test-elastic00.xml
error: Failed to define domain from /etc/libvirt/qemu/lkr-test-elastic00.xml
error: unknown OS type hvm
tsadmin@lw-kvm-00:~$
virsh list will only show the running VMs. On reboot, is a VM is not set to autostart, it will stay down until you start it. virsh list --all, will give you all the defined VMs, so you can start the ones that are down. or you can do virsh autostart VMNAME to set it to autostart on host boot
I could build the host, install and configure kvm. Create several guest via virt-manager, set the guest to autostart, and dd the host disk. This would work, then on a reboot, it wouldn't.
At this point my boss said to blow it out and throw ESXi on them so not only was it frustrating, it's now moot. :/
Nothing to do with the kernel module. If libvirt failed to locate the files after reboot, you probably had a permissions or SELinux misconfiguration. Never happened to me, but then again, I am smart enough not to use ubuntu for KVM
tsadmin@lw-kvm-00:~$ sudo virsh define /etc/libvirt/qemu/lkr-test-elastic00.xml
error: Failed to define domain from /etc/libvirt/qemu/lkr-test-elastic00.xml
error: unknown OS type hvm
tsadmin@lw-kvm-00:~$
This looks like a missing kvm kerlel module.
Even if livbirt 'forgot' where the file is, here the OP is specifically telling it where to find it and to define a new VM with it...
But since the OP will not pursue further info we'll never know.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.