From: Riccardo Veraldi <Riccardo.Veraldi@cnaf.infn.it>
To: kvm@vger.kernel.org
Subject: how to convert manual vm to libvirtd management
Date: Thu, 09 Apr 2009 19:02:02 +0200 [thread overview]
Message-ID: <49DE2A0A.2060209@cnaf.infn.it> (raw)
Hello,
I have always created my VM under kvm manually starting them from a .sh
script:
for example machine called abbone
# abbone.sh
screen qemu-kvm -nographic -hda ./abbone.img -m 512 -net
nic,model=e1000,macaddr=00:16:3e:05:00:07 -net tap -name abbone -vnc :0
I use screen so that I am hook to the serial console and it is so easy
to manager machien via serial console.
But now I havea problem. I vould like to use virsh to manager my virtual
machines.
now I installed all my VM MANUALLY vithout using virt-install so I do
not have the proper virtual machine
XML descriptor files in /etc/libvirt/qemu
without a XML description is not possible to start, shutdown, destroy
virtual machines via virsh or virt-manager tool.
so How can I create an XML file with all the options of the above command ?
actually with the above command a proper tapN interface is created upon
VM startup via /etc/qemu-ifup script
#!/bin/sh
set -x
switch=sw1
if [ -n "$1" ];then
/usr/sbin/tunctl -t $1
/sbin/ip link set $1 up
sleep 1
/usr/sbin/brctl addif $switch $1
exit 0
else
echo "Error: no interface specified"
exit 1
fi
thanks
Rick
next reply other threads:[~2009-04-09 17:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-09 17:02 Riccardo Veraldi [this message]
2009-04-09 18:14 ` how to convert manual vm to libvirtd management Daniel P. Berrange
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=49DE2A0A.2060209@cnaf.infn.it \
--to=riccardo.veraldi@cnaf.infn.it \
--cc=kvm@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox