KVM failover to another KVM server
Dan Sheffner
thesheff17 at yahoo.com
Sat May 9 00:22:40 UTC 2009
Well when I try to use the create command I get this:
virsh # create /etc/libvirt/qemu/ubuntuTest.xml
error: Failed to create domain from /etc/libvirt/qemu/ubuntuTest.xml
error: unknown OS type hvm
and I'm using virt-install by using the below command:
self.runCommand("virt-install --hvm --name " + name + " --ram " + ram + " --file " + filename + " --file-size " + hardDriveSize + " --network bridge:br0 --cdrom " + cdrom + " --accelerate --noautoconsole --vnc")
I'm not sure if there is some where everyone keep scripts they write but for now I'm putting them on my Wiki here:
They are not the best scripts but they are are written in python and it calls os.system(command) to run stuff on the command line.
http://software.digisoftinc.org/DigiSoftWiki/index.php/Python_Programming_Notes#Virtualization
It is all text based and requires the Linux.py class here:
http://software.digisoftinc.org/DigiSoftWiki/index.php/Python_Programming_Notes#Linux.py
To run these scripts:
1) switch to root
2) download both scripts
3) change Virtualizaiton class to executable
4) run script
Example
#> su -
<enter root password>
#> chmod +x Virtualization.py
#> ./Virtualization.py
Let me know if you need any further info.
----- Original Message ----
From: Mark Foster <mark at foster.cc>
To: Dan Sheffner <thesheff17 at yahoo.com>
Cc: Matt Isaacs <matthew.isaacs at gmail.com>; ubuntu-server at lists.ubuntu.com
Sent: Friday, May 8, 2009 5:09:03 PM
Subject: Re: KVM failover to another KVM server
I believe you do so the hypervisor knows about the domain.
You can use the 'create' command this. See virsh help create
Dan Sheffner wrote:
> Both machines have /etc/libvirt/qemu/ubuntuTest.xml present and I get the same error. Do I have to load the xml in the vmserver06 machine?
-- I hate rascists.
Mark D. Foster <mark at foster.cc> http://mark.foster.cc/ | http://conshell.net/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Virtualization.py
Type: text/x-python
Size: 21352 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-server/attachments/20090508/dd10f89b/attachment.py>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Linux.py
Type: text/x-python
Size: 5242 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-server/attachments/20090508/dd10f89b/attachment-0001.py>
More information about the ubuntu-server
mailing list