Xenner: How to manage domains with virsh?
by Felix Schwarz
Hi,
I got xenner to run on Fedora 9. And so far it seems that it is able to run at
least some of my paravirtualized guests which I created on Xen/Fedora 8.
Now the problem is how I can manage these domains using virsh? I can start a
Xenner domain using "xenner (and bunch of options)". Everything seems to be fine.
But "virsh list" does not show any active domains. So how can add the
configuration to virsh so that I can do something like "virsh start mydomain"?
Is this possible at all in the current Xenner (using Fedora 9 with all
released updates but nothing from updates-testing)?
fs
15 years, 10 months
Virtual Machine Manager
by gvm999
Hi all,
This is probably a stupid question, but I can't figure it out...
I want to try Virtual Machine Manager.
When I create a new machine, there is asked for a "Install Media url".
I want to install FreeBSD as a virtual machine, however, what url should I
specify then?
Or is this only for redhat systems? (fedora/centos?)
Greetings!
15 years, 10 months
Assign IP and CONFIG_IP_PNP problem
by Alma Matex
Hi,
I'm new to Xen and I'm having problem with Xen networking.
I read that one could set the IP address of a new virtual machine in the
configuration file with the vif statement.
For example:
vif = [ 'mac=00:00:00:00:00:01, bridge=virbr0' ]
ip = "10.10.10.1"
My problem is that when the virtual machine start it doesn't get the IP.
Insted it uses dhcp to get one.
I found that the xen kernel must be compiled with the CONFIG_IP_PNP option
set, but my kernel doesn't seem to have it.
Infact:
grep CONFIG_IP_PNP /boot/config-2.6.21.7-3.fc8xen
gives me:
# CONFIG_IP_PNP is not set
Is this one the only problem?
Is there a way to get a fedora precompiled kernel with this option set?
Thanks
Regards
Matteo
15 years, 10 months
How to change hostname from cloned VMs
by Marcel Damásio
Hi all!
I have a question not specifically about virtualization.
I'm using virt-clone to clone my VMs.
But the new VMs generated have the same hostname as the original.
How can I change my VMs hostname without impact any application?
There are a lot of places that I can change the hostname, but I don't know
the right and garanteed way to do that change.
--
Marcel Damásio Moreira
9º período de Ciência da Computação - UFES
(27) 8128-7106
Estagiário do Suporte - DI/UFES
15 years, 10 months
RE: Fedora-xen Digest, Vol 31, Issue 11
by Greg Cox
At which point do you receive the error message?
I ran into a similar problem where an xp guest would loose its mapping/path
to the install media or image after the initial reboot during the XP
installation.
After several months of banging my head against a wall, I finally found an
interface to set it manually in the machine details screen> Hardware Tab.
Setting the variable here will reconnect the device upon the next guest
boot.
A quick Google revealed this is a common issue but I was not able to find
the solution posted anywhere. When I have some time, I plan on posting it in
a few of the popular fedora forums.
Hopefully this helps, if not repost with a few more specifics and one of the
veterans may be able to steer you in the right direction.
G'luck
G
-----Original Message-----
From: fedora-xen-bounces(a)redhat.com [mailto:fedora-xen-bounces@redhat.com]
On Behalf Of fedora-xen-request(a)redhat.com
Sent: Tuesday, June 17, 2008 12:00 PM
To: fedora-xen(a)redhat.com
Subject: Fedora-xen Digest, Vol 31, Issue 11
Send Fedora-xen mailing list submissions to
fedora-xen(a)redhat.com
To subscribe or unsubscribe via the World Wide Web, visit
https://www.redhat.com/mailman/listinfo/fedora-xen
or, via email, send a message with subject or body 'help' to
fedora-xen-request(a)redhat.com
You can reach the person managing the list at
fedora-xen-owner(a)redhat.com
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Fedora-xen digest..."
Today's Topics:
1. Virtual Machine Manager (gvm999)
2. Re: xen network bridge with eth0:1 aliases, tmpbridge?
(Mark McLoughlin)
----------------------------------------------------------------------
Message: 1
Date: Sun, 15 Jun 2008 15:26:25 +0200
From: gvm999 <gvm999(a)gmail.com>
Subject: [Fedora-xen] Virtual Machine Manager
To: fedora-xen(a)redhat.com
Message-ID:
<a1ed72c0806150626u72770d6ej557ec88d2605b2e7(a)mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
Hi all,
This is probably a stupid question, but I can't figure it out...
I want to try Virtual Machine Manager.
When I create a new machine, there is asked for a "Install Media url".
I want to install FreeBSD as a virtual machine, however, what url should I
specify then?
Or is this only for redhat systems? (fedora/centos?)
Greetings!
15 years, 10 months
xen network bridge with eth0:1 aliases, tmpbridge?
by Frank Liu
HI there,
I am having some troubles with xen network bridge on Fedora 8.
Searching bugzilla gives me
https://bugzilla.redhat.com/show_bug.cgi?id=193322 which seems to be
old.
This is a default fedora 8 installed with default xen installation. I
assume I should see a "xenbr0" interface, but instead, I see
"tmpbridge"
ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:19:D1:23:DD:4E
inet addr:x.y.z.194 Bcast:x.y.z.199 Mask:255.255.255.248
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:12372 errors:0 dropped:0 overruns:0 frame:0
TX packets:10127 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:8667047 (8.2 MiB) TX bytes:1098173 (1.0 MiB)
eth0:1 Link encap:Ethernet HWaddr 00:19:D1:23:DD:4E
inet addr:x.y.z.195 Bcast:x.y.z.199 Mask:255.255.255.248
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:175 errors:0 dropped:0 overruns:0 frame:0
TX packets:175 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:27960 (27.3 KiB) TX bytes:27960 (27.3 KiB)
tmpbridge Link encap:Ethernet HWaddr 00:00:00:00:00:00
inet addr:207.182.131.194 Bcast:207.182.131.199 Mask:255.255.255.248
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
virbr0 Link encap:Ethernet HWaddr 00:00:00:00:00:00
inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:19 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:3318 (3.2 KiB)
xend-debug.log says:
Error: either "local" is duplicate, or "secondary" is a garbage.
Does that mean xen in Fedora 8 still can't deal with eth0:1 alias?
In my case, I only want xen to use eth0 to bridge to the domU, and
eth0:1 is for some other apps on the dom0. I tried to put a
"netdev=eth0" in the xend-config.sxp and that didn't help.
Thanks!
Frank
15 years, 10 months
i need fedora 9 digit DVD
by aswath Aswath
HI. i need Fedora 9 to free ship it. so send me through post>
--- On Wed, 11/6/08, fedora-xen-request(a)redhat.com <fedora-xen-request(a)redhat.com> wrote:
From: fedora-xen-request(a)redhat.com <fedora-xen-request(a)redhat.com>
Subject: Fedora-xen Digest, Vol 31, Issue 9
To: fedora-xen(a)redhat.com
Date: Wednesday, 11 June, 2008, 4:00 PM
Send Fedora-xen mailing list submissions to
fedora-xen(a)redhat.com
To subscribe or unsubscribe via the World Wide Web, visit
https://www.redhat.com/mailman/listinfo/fedora-xen
or, via email, send a message with subject or body 'help' to
fedora-xen-request(a)redhat.com
You can reach the person managing the list at
fedora-xen-owner(a)redhat.com
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Fedora-xen digest..."
Today's Topics:
1. Re: Autostart VM on boot ( Marcel Dam?sio )
2. Installing Para Virtualized guest using ISO file (tournesol)
3. Re: Installing Para Virtualized guest using ISO file (Akio Takebe)
4. Re: Installing Para Virtualized guest using ISO file
(Olivier Renault)
5. Re: Installing Para Virtualized guest using ISO file
( Gast?n Keller )
----------------------------------------------------------------------
Message: 1
Date: Tue, 10 Jun 2008 16:13:56 -0300
From: " Marcel Dam?sio " <marceldamasio(a)gmail.com>
Subject: Re: [Fedora-xen] Autostart VM on boot
To: "Aaron Metzger" <ametzger(a)silkspeed.com>
Cc: fedora-xen(a)redhat.com
Message-ID:
<386f83ad0806101213u471e59c2s54a42ce8bf1f1f12(a)mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
Hi Aaron,
Thanks a lot for helping me. It worked.
I added into *'/var/lib/xend/domains/<UUID>**/config.sxp' *these
lines:
* (on_xend_start start)
(on_xend_stop shutdown)*
Now, the VMs are really auto starting and shutting down!
Thanks for helping me.
On Mon, Jun 9, 2008 at 6:51 PM, Aaron Metzger <ametzger(a)silkspeed.com>
wrote:
> Marcel Damásio wrote:
>
>> Hi,
>>
>> I'm using Fedora 8 as DOM0.
>> I created my virtual machines using virt-install.
>> Now I want to configure them to autostart on DOM0's boot, but I
can't.
>>
>> I tried a lot of solutions, but none worked.
>>
>> Could somebody help me?
>>
>>
> Marcel:
>
> Do you have domain definitions in:
>
> /var/lib/xend/domains
>
> Shutdown the xend.
>
> Edit
>
> /var/lib/xend/domains/<UUID>/config.sxp
>
>
> Add these two lines to the domain definition:
>
> (on_xend_start start)
> (on_xend_stop shutdown)
>
> Make sure that "xend" and "xendomains" start
automatically in your
> "init.d".
>
>
> By the way, I also have these actions in my config.sxp and can't
remember
> if these were the default values after virt-install or not.
>
> (actions_after_crash restart)
> (actions_after_shutdown destroy)
> (actions_after_reboot restart)
>
>
> Let me know how it goes for you.
>
> --
> Good luck,
> Aaron
>
>
--
Marcel Damásio Moreira
9º período de Ciência da Computação - UFES
(27) 8128-7105
Estagiário do Suporte - DI/UFES
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
https://www.redhat.com/archives/fedora-xen/attachments/20080610/0eb4f83b/...
------------------------------
Message: 2
Date: Wed, 11 Jun 2008 11:54:24 +0900
From: tournesol <tournesol33(a)gmail.com>
Subject: [Fedora-xen] Installing Para Virtualized guest using ISO file
To: fedora-xen(a)redhat.com
Message-ID: <484F3E60.1050105(a)gmail.com>
Content-Type: text/plain; charset=ISO-2022-JP
Hi.
Are there any ideas that can use ISO file(ex: Fedora-8-i386-DVD.iso) to
install Para Virtualized guest OS ?
Waiting for your help.
------------------------------
Message: 3
Date: Wed, 11 Jun 2008 12:51:27 +0900
From: Akio Takebe <takebe_akio(a)jp.fujitsu.com>
Subject: Re: [Fedora-xen] Installing Para Virtualized guest using ISO
file
To: tournesol <tournesol33(a)gmail.com>, fedora-xen(a)redhat.com
Message-ID: <39C8CB766CF23Etakebe_akio(a)jp.fujitsu.com>
Content-Type: text/plain; charset=us-ascii
Hi,
>Are there any ideas that can use ISO file(ex: Fedora-8-i386-DVD.iso) to
>install Para Virtualized guest OS ?
>
>Waiting for your help.
Do you install vsftpd? If so, you mount ISO to /var/ftp/pub,
and vsftpd start, then you can install the local ftp server,
I think.
Best Regards,
Akio Takebe
------------------------------
Message: 4
Date: Wed, 11 Jun 2008 14:25:17 +0200
From: Olivier Renault <orenault(a)redhat.com>
Subject: Re: [Fedora-xen] Installing Para Virtualized guest using ISO
file
To: Akio Takebe <takebe_akio(a)jp.fujitsu.com>
Cc: fedora-xen(a)redhat.com
Message-ID: <484FC42D.9000900(a)redhat.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Akio Takebe wrote:
> Hi,
>
>> Are there any ideas that can use ISO file(ex: Fedora-8-i386-DVD.iso)
to
>> install Para Virtualized guest OS ?
>>
>> Waiting for your help.
> Do you install vsftpd? If so, you mount ISO to /var/ftp/pub,
> and vsftpd start, then you can install the local ftp server,
> I think.
>
You can not install using the iso as such for a pv system. You will need
to install it through HTTP / NFS / FTP / ... ( I am normally using http,
& I am unsure if NFS is now supported ).
Install httpd server
yum -y install httpd
create a directory to mount your iso
mkdir /var/www/html/pub
mount -o loop /path-to-your-iso-image /var/www/html/pub
turn off SELinux & Firewall
setenforce 0
iptables -F
service httpd start
You should now be ready to install your Vm from
http://<ip of dom0>/pub
Hope this help.
Olivier
NB ; do not use localhost for the IP of dom0
------------------------------
Message: 5
Date: Wed, 11 Jun 2008 09:42:55 -0400
From: " Gast?n Keller " <gastonkeller(a)gmail.com>
Subject: Re: [Fedora-xen] Installing Para Virtualized guest using ISO
file
To: tournesol <tournesol33(a)gmail.com>
Cc: fedora-xen(a)redhat.com
Message-ID:
<bd6e1f920806110642g67f32ca5p3bb2e702b73e8ba2(a)mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
On Tue, Jun 10, 2008 at 10:54 PM, tournesol <tournesol33(a)gmail.com>
wrote:
> Hi.
>
> Are there any ideas that can use ISO file(ex: Fedora-8-i386-DVD.iso) to
> install Para Virtualized guest OS ?
Here there is a Fedora 8 Quick Start guide to create Xen guests:
http://fedoraproject.org/wiki/Docs/Fedora8VirtQuickStart#Building_a_Fedor...
I have installed guests using NFS and also FTP. If you already have
the ISO, you can do what Olivier mentioned to use HTTP or also mount
the ISO and share it through NFS.
See you,
Gaston
>
> Waiting for your help.
>
>
> --
> Fedora-xen mailing list
> Fedora-xen(a)redhat.com
> https://www.redhat.com/mailman/listinfo/fedora-xen
>
--
La única verdad es la realidad.
------------------------------
--
Fedora-xen mailing list
Fedora-xen(a)redhat.com
https://www.redhat.com/mailman/listinfo/fedora-xen
End of Fedora-xen Digest, Vol 31, Issue 9
*****************************************
Did you know? You can CHAT without downloading messenger. Go to http://in.messenger.yahoo.com/webmessengerpromo.php/
15 years, 10 months
vm create test ="losetup /dev/loop0 /data/xen/domains/test/disk.img failed"
by Christian Nitschmann
Dear mailing-list
after several attempts to start a xen linux-vm on a Fedora 8 XEN-System
(Quadcore Xeon-System with 8GB RAM and VT/PAE enabled), i now really
need your help.
I sucessfully created and installed a new debian etch-vm with the well
known debootstrap-script. I got 10 unused loop-devices which should
really be enough for at least one xen-machine.
When i try to start the new debian-etch-machine with "*xm create
/etc/xen/test -c*" i always get the error message:
-------------------------------
Using config file "./test".
Error: Device 2049 (vbd) could not be connected. losetup /dev/loop0
/data/xen/domains/test/disk.img failed
-------------------------------
*xend.log:*
-----------------------------------------------------
[2008-06-11 11:24:09 2528] DEBUG (XendDomainInfo:1555)
XendDomainInfo.constructDomain
[2008-06-11 11:24:09 2528] DEBUG (balloon:116) Balloon: 131072 KiB free;
need 2048; done.
[2008-06-11 11:24:09 2528] DEBUG (XendDomain:443) Adding Domain: 1
[2008-06-11 11:24:09 2528] DEBUG (XendDomainInfo:1609)
XendDomainInfo.initDomain: 1 256
[2008-06-11 11:24:09 2528] DEBUG (XendDomainInfo:1640)
_initDomain:shadow_memory=0x0, memory_static_max=0x8000000,
memory_static_min=0x0.
[2008-06-11 11:24:09 2528] DEBUG (balloon:116) Balloon: 131072 KiB free;
need 131072; done.
[2008-06-11 11:24:09 2528] INFO (image:129) buildDomain os=linux dom=1
vcpus=1
[2008-06-11 11:24:09 2528] DEBUG (image:198) domid = 1
[2008-06-11 11:24:09 2528] DEBUG (image:199) memsize = 128
[2008-06-11 11:24:09 2528] DEBUG (image:200) image =
/boot/vmlinuz-2.6.21.7-3.fc8xen
[2008-06-11 11:24:09 2528] DEBUG (image:201) store_evtchn = 1
[2008-06-11 11:24:09 2528] DEBUG (image:202) console_evtchn = 2
[2008-06-11 11:24:09 2528] DEBUG (image:203) cmdline = root=/dev/sda1 ro
ip=:1.2.3.4::::eth0:dhcp
[2008-06-11 11:24:09 2528] DEBUG (image:204) ramdisk =
/boot/initrd-2.6.21.7-3.fc8xen.img
[2008-06-11 11:24:09 2528] DEBUG (image:205) vcpus = 1
[2008-06-11 11:24:09 2528] DEBUG (image:206) features =
[2008-06-11 11:24:09 2528] INFO (XendDomainInfo:1458) createDevice: vbd
: {'uuid': '1681e256-5ca1-49d6-c570-f08bb2f3c0a1', 'bootable': 1,
'driver': 'paravirtualised', 'dev': 'sda1', 'uname':
'file:/data/xen/domains/test/disk.img', 'mode': 'w'}
[2008-06-11 11:24:09 2528] DEBUG (DevController:117) DevController:
writing {'virtual-device': '2049', 'device-type': 'disk', 'protocol':
'x86_32-abi', 'backend-id': '0', 'state': '1', 'backend':
'/local/domain/0/backend/vbd/1/2049'} to /local/domain/1/device/vbd/2049.
[2008-06-11 11:24:09 2528] DEBUG (DevController:119) DevController:
writing {'domain': 'test', 'frontend':
'/local/domain/1/device/vbd/2049', 'uuid':
'1681e256-5ca1-49d6-c570-f08bb2f3c0a1', 'dev': 'sda1', 'state': '1',
'params': '/data/xen/domains/test/disk.img', 'mode': 'w', 'online': '1',
'frontend-id': '1', 'type': 'file'} to /local/domain/0/backend/vbd/1/2049.
[2008-06-11 11:24:09 2528] INFO (XendDomainInfo:1458) createDevice: vbd
: {'uuid': '114d9b70-e03a-ccfc-53f1-760b433d1247', 'bootable': 0,
'driver': 'paravirtualised', 'dev': 'sda2', 'uname':
'file:/data/xen/domains/test/swap.img', 'mode': 'w'}
[2008-06-11 11:24:09 2528] DEBUG (DevController:117) DevController:
writing {'virtual-device': '2050', 'device-type': 'disk', 'protocol':
'x86_32-abi', 'backend-id': '0', 'state': '1', 'backend':
'/local/domain/0/backend/vbd/1/2050'} to /local/domain/1/device/vbd/2050.
[2008-06-11 11:24:09 2528] DEBUG (DevController:119) DevController:
writing {'domain': 'test', 'frontend':
'/local/domain/1/device/vbd/2050', 'uuid':
'114d9b70-e03a-ccfc-53f1-760b433d1247', 'dev': 'sda2', 'state': '1',
'params': '/data/xen/domains/test/swap.img', 'mode': 'w', 'online': '1',
'frontend-id': '1', 'type': 'file'} to /local/domain/0/backend/vbd/1/2050.
[2008-06-11 11:24:09 2528] INFO (XendDomainInfo:1458) createDevice: vif
: {'mac': '00:16:3e:12:88:a1', 'uuid':
'74139f26-9d03-53a5-3ac7-0e2a5e7f2f59'}
[2008-06-11 11:24:09 2528] DEBUG (DevController:117) DevController:
writing {'mac': '00:16:3e:12:88:a1', 'handle': '0', 'protocol':
'x86_32-abi', 'backend-id': '0', 'state': '1', 'backend':
'/local/domain/0/backend/vif/1/0'} to /local/domain/1/device/vif/0.
[2008-06-11 11:24:09 2528] DEBUG (DevController:119) DevController:
writing {'domain': 'test', 'handle': '0', 'uuid':
'74139f26-9d03-53a5-3ac7-0e2a5e7f2f59', 'script':
'/etc/xen/scripts/vif-bridge', 'state': '1', 'frontend':
'/local/domain/1/device/vif/0', 'mac': '00:16:3e:12:88:a1', 'online':
'1', 'frontend-id': '1'} to /local/domain/0/backend/vif/1/0.
[2008-06-11 11:24:09 2528] DEBUG (XendDomainInfo:2116) Storing VM
details: {'on_xend_stop': 'ignore', 'shadow_memory': '0', 'uuid':
'95a38774-70eb-1714-fe37-5ab47b436608', 'on_reboot': 'restart',
'start_time': '1213176249.91', 'on_poweroff': 'destroy',
'on_xend_start': 'ignore', 'on_crash': 'restart', 'xend/restart_count':
'0', 'vcpus': '1', 'vcpu_avail': '1', 'image': "(linux (kernel
/boot/vmlinuz-2.6.21.7-3.fc8xen) (ramdisk
/boot/initrd-2.6.21.7-3.fc8xen.img) (args 'root=/dev/sda1 ro
ip=:1.2.3.4::::eth0:dhcp ') (notes (HV_START_LOW 4118806528) (FEATURES
'writable_page_tables|writable_descriptor_tables|auto_translated_physmap|pae_pgdir_above_4gb|supervisor_mode_kernel')
(VIRT_BASE 3221225472) (GUEST_VERSION 2.6) (PADDR_OFFSET 3221225472)
(GUEST_OS linux) (HYPERCALL_PAGE 3238006784) (LOADER generic)
(SUSPEND_CANCEL 1) (PAE_MODE yes) (ENTRY 3238002688) (XEN_VERSION
xen-3.0)))", 'name': 'test'}
[2008-06-11 11:24:09 2528] DEBUG (XendDomainInfo:956) Storing domain
details: {'console/ring-ref': '2261948', 'image/entry': '3238002688',
'console/port': '2', 'store/ring-ref': '2261949', 'image/loader':
'generic', 'vm': '/vm/95a38774-70eb-1714-fe37-5ab47b436608',
'control/platform-feature-multiprocessor-suspend': '1',
'image/hv-start-low': '4118806528', 'image/guest-os': 'linux',
'image/features/writable-descriptor-tables': '1', 'image/virt-base':
'3221225472', 'memory/target': '131072', 'image/guest-version': '2.6',
'image/features/supervisor-mode-kernel': '1', 'image/pae-mode': 'yes',
'console/limit': '1048576', 'image/paddr-offset': '3221225472',
'image/hypercall-page': '3238006784', 'image/suspend-cancel': '1',
'cpu/0/availability': 'online', 'image/features/pae-pgdir-above-4gb':
'1', 'image/features/writable-page-tables': '1',
'image/features/auto-translated-physmap': '1', 'name': 'test', 'domid':
'1', 'image/xen-version': 'xen-3.0', 'store/port': '1'}
[2008-06-11 11:24:09 2528] DEBUG (DevController:117) DevController:
writing {'protocol': 'x86_32-abi', 'state': '1', 'backend-id': '0',
'backend': '/local/domain/0/backend/console/1/0'} to
/local/domain/1/device/console/0.
[2008-06-11 11:24:09 2528] DEBUG (DevController:119) DevController:
writing {'domain': 'test', 'protocol': 'vt100', 'uuid':
'6af035fd-4e60-53d0-db0f-eb5c2a03fa3a', 'frontend':
'/local/domain/1/device/console/0', 'state': '1', 'location': '2',
'online': '1', 'frontend-id': '1'} to /local/domain/0/backend/console/1/0.
[2008-06-11 11:24:09 2528] DEBUG (XendDomainInfo:1040)
XendDomainInfo.handleShutdownWatch
[2008-06-11 11:24:10 2528] DEBUG (DevController:150) Waiting for devices
vif.
[2008-06-11 11:24:10 2528] DEBUG (DevController:155) Waiting for 0.
[2008-06-11 11:24:10 2528] DEBUG (DevController:594)
hotplugStatusCallback /local/domain/0/backend/vif/1/0/hotplug-status.
[2008-06-11 11:24:10 2528] DEBUG (DevController:594)
hotplugStatusCallback /local/domain/0/backend/vif/1/0/hotplug-status.
[2008-06-11 11:24:10 2528] DEBUG (DevController:608)
hotplugStatusCallback 1.
[2008-06-11 11:24:10 2528] DEBUG (DevController:150) Waiting for devices
usb.
[2008-06-11 11:24:10 2528] DEBUG (DevController:150) Waiting for devices
vbd.
[2008-06-11 11:24:10 2528] DEBUG (DevController:155) Waiting for 2049.
[2008-06-11 11:24:10 2528] DEBUG (DevController:594)
hotplugStatusCallback /local/domain/0/backend/vbd/1/2049/hotplug-status.
[2008-06-11 11:24:10 2528] DEBUG (DevController:594)
hotplugStatusCallback /local/domain/0/backend/vbd/1/2049/hotplug-status.
[2008-06-11 11:24:10 2528] DEBUG (DevController:608)
hotplugStatusCallback 2.
[2008-06-11 11:24:10 2528] DEBUG (XendDomainInfo:1802)
XendDomainInfo.destroy: domid=1
[2008-06-11 11:24:10 2528] DEBUG (XendDomainInfo:1821)
XendDomainInfo.destroyDomain(1)
[2008-06-11 11:24:10 2528] DEBUG (XendDomainInfo:1479) Removing vif/0
[2008-06-11 11:24:10 2528] DEBUG (XendDomainInfo:569)
XendDomainInfo.destroyDevice: deviceClass = vif, device = vif/0
[2008-06-11 11:24:10 2528] DEBUG (XendDomainInfo:1479) Removing vbd/2049
[2008-06-11 11:24:10 2528] DEBUG (XendDomainInfo:569)
XendDomainInfo.destroyDevice: deviceClass = vbd, device = vbd/2049
[2008-06-11 11:24:10 2528] DEBUG (XendDomainInfo:1479) Removing vbd/2050
[2008-06-11 11:24:10 2528] DEBUG (XendDomainInfo:569)
XendDomainInfo.destroyDevice: deviceClass = vbd, device = vbd/2050
[2008-06-11 11:24:10 2528] DEBUG (XendDomainInfo:1479) Removing console/0
[2008-06-11 11:24:10 2528] DEBUG (XendDomainInfo:569)
XendDomainInfo.destroyDevice: deviceClass = console, device = console/0
[2008-06-12 11:24:40 2528] DEBUG (XendDomainInfo:84)
XendDomainInfo.create(['vm', ['name', 'test'], ['memory', '128'],
['on_poweroff', 'destroy'], ['on_reboot', 'restart'], ['on_crash',
'restart'], ['vcpus', 1], ['on_xend_start', 'ignore'], ['on_xend_stop',
'ignore'], ['image', ['linux', ['kernel',
'/boot/vmlinuz-2.6.21.7-3.fc8xen'], ['ramdisk',
'/boot/initrd-2.6.21.7-3.fc8xen.img'], ['ip', ':1.2.3.4::::eth0:dhcp'],
['root', '/dev/sda1 ro']]], ['device', ['vbd', ['uname',
'file:/data/xen/domains/test/disk.img'], ['dev', 'sda1'], ['mode',
'w']]], ['device', ['vbd', ['uname',
'file:/data/xen/domains/test/swap.img'], ['dev', 'sda2'], ['mode',
'w']]], ['device', ['vif']]])
[2008-06-12 11:24:40 2528] DEBUG (XendDomainInfo:1555)
XendDomainInfo.constructDomain
[2008-06-12 11:24:40 2528] DEBUG (balloon:116) Balloon: 131072 KiB free;
need 2048; done.
[2008-06-12 11:24:40 2528] DEBUG (XendDomain:443) Adding Domain: 2
[2008-06-12 11:24:40 2528] DEBUG (XendDomainInfo:1609)
XendDomainInfo.initDomain: 2 256
[2008-06-12 11:24:40 2528] DEBUG (XendDomainInfo:1640)
_initDomain:shadow_memory=0x0, memory_static_max=0x8000000,
memory_static_min=0x0.
[2008-06-12 11:24:40 2528] DEBUG (balloon:116) Balloon: 131072 KiB free;
need 131072; done.
[2008-06-12 11:24:40 2528] INFO (image:129) buildDomain os=linux dom=2
vcpus=1
[2008-06-12 11:24:40 2528] DEBUG (image:198) domid = 2
[2008-06-12 11:24:40 2528] DEBUG (image:199) memsize = 128
[2008-06-12 11:24:40 2528] DEBUG (image:200) image =
/boot/vmlinuz-2.6.21.7-3.fc8xen
[2008-06-12 11:24:40 2528] DEBUG (image:201) store_evtchn = 1
[2008-06-12 11:24:40 2528] DEBUG (image:202) console_evtchn = 2
[2008-06-12 11:24:40 2528] DEBUG (image:203) cmdline = root=/dev/sda1 ro
ip=:1.2.3.4::::eth0:dhcp
[2008-06-12 11:24:40 2528] DEBUG (image:204) ramdisk =
/boot/initrd-2.6.21.7-3.fc8xen.img
[2008-06-12 11:24:40 2528] DEBUG (image:205) vcpus = 1
[2008-06-12 11:24:40 2528] DEBUG (image:206) features =
[2008-06-12 11:24:41 2528] INFO (XendDomainInfo:1458) createDevice: vbd
: {'uuid': 'a80a5da8-49f0-8a5b-8ab1-315586fbc043', 'bootable': 1,
'driver': 'paravirtualised', 'dev': 'sda1', 'uname':
'file:/data/xen/domains/test/disk.img', 'mode': 'w'}
[2008-06-12 11:24:41 2528] DEBUG (DevController:117) DevController:
writing {'virtual-device': '2049', 'device-type': 'disk', 'protocol':
'x86_32-abi', 'backend-id': '0', 'state': '1', 'backend':
'/local/domain/0/backend/vbd/2/2049'} to /local/domain/2/device/vbd/2049.
[2008-06-12 11:24:41 2528] DEBUG (DevController:119) DevController:
writing {'domain': 'test', 'frontend':
'/local/domain/2/device/vbd/2049', 'uuid':
'a80a5da8-49f0-8a5b-8ab1-315586fbc043', 'dev': 'sda1', 'state': '1',
'params': '/data/xen/domains/test/disk.img', 'mode': 'w', 'online': '1',
'frontend-id': '2', 'type': 'file'} to /local/domain/0/backend/vbd/2/2049.
[2008-06-12 11:24:41 2528] INFO (XendDomainInfo:1458) createDevice: vbd
: {'uuid': '464904a6-f7b0-d5dd-6e87-f031694ca985', 'bootable': 0,
'driver': 'paravirtualised', 'dev': 'sda2', 'uname':
'file:/data/xen/domains/test/swap.img', 'mode': 'w'}
[2008-06-12 11:24:41 2528] DEBUG (DevController:117) DevController:
writing {'virtual-device': '2050', 'device-type': 'disk', 'protocol':
'x86_32-abi', 'backend-id': '0', 'state': '1', 'backend':
'/local/domain/0/backend/vbd/2/2050'} to /local/domain/2/device/vbd/2050.
[2008-06-12 11:24:41 2528] DEBUG (DevController:119) DevController:
writing {'domain': 'test', 'frontend':
'/local/domain/2/device/vbd/2050', 'uuid':
'464904a6-f7b0-d5dd-6e87-f031694ca985', 'dev': 'sda2', 'state': '1',
'params': '/data/xen/domains/test/swap.img', 'mode': 'w', 'online': '1',
'frontend-id': '2', 'type': 'file'} to /local/domain/0/backend/vbd/2/2050.
[2008-06-12 11:24:41 2528] INFO (XendDomainInfo:1458) createDevice: vif
: {'mac': '00:16:3e:28:7f:4a', 'uuid':
'c9e74d33-67b3-3ecf-549d-ed9b7ed4009b'}
[2008-06-12 11:24:41 2528] DEBUG (DevController:117) DevController:
writing {'mac': '00:16:3e:28:7f:4a', 'handle': '0', 'protocol':
'x86_32-abi', 'backend-id': '0', 'state': '1', 'backend':
'/local/domain/0/backend/vif/2/0'} to /local/domain/2/device/vif/0.
[2008-06-12 11:24:41 2528] DEBUG (DevController:119) DevController:
writing {'domain': 'test', 'handle': '0', 'uuid':
'c9e74d33-67b3-3ecf-549d-ed9b7ed4009b', 'script':
'/etc/xen/scripts/vif-bridge', 'state': '1', 'frontend':
'/local/domain/2/device/vif/0', 'mac': '00:16:3e:28:7f:4a', 'online':
'1', 'frontend-id': '2'} to /local/domain/0/backend/vif/2/0.
[2008-06-12 11:24:41 2528] DEBUG (XendDomainInfo:2116) Storing VM
details: {'on_xend_stop': 'ignore', 'shadow_memory': '0', 'uuid':
'1ab9d29a-b2ff-ec05-4748-7efc1bf86f18', 'on_reboot': 'restart',
'start_time': '1213262681.16', 'on_poweroff': 'destroy',
'on_xend_start': 'ignore', 'on_crash': 'restart', 'xend/restart_count':
'0', 'vcpus': '1', 'vcpu_avail': '1', 'image': "(linux (kernel
/boot/vmlinuz-2.6.21.7-3.fc8xen) (ramdisk
/boot/initrd-2.6.21.7-3.fc8xen.img) (args 'root=/dev/sda1 ro
ip=:1.2.3.4::::eth0:dhcp ') (notes (HV_START_LOW 4118806528) (FEATURES
'writable_page_tables|writable_descriptor_tables|auto_translated_physmap|pae_pgdir_above_4gb|supervisor_mode_kernel')
(VIRT_BASE 3221225472) (GUEST_VERSION 2.6) (PADDR_OFFSET 3221225472)
(GUEST_OS linux) (HYPERCALL_PAGE 3238006784) (LOADER generic)
(SUSPEND_CANCEL 1) (PAE_MODE yes) (ENTRY 3238002688) (XEN_VERSION
xen-3.0)))", 'name': 'test'}
[2008-06-12 11:24:41 2528] DEBUG (XendDomainInfo:956) Storing domain
details: {'console/ring-ref': '2261948', 'image/entry': '3238002688',
'console/port': '2', 'store/ring-ref': '2261949', 'image/loader':
'generic', 'vm': '/vm/1ab9d29a-b2ff-ec05-4748-7efc1bf86f18',
'control/platform-feature-multiprocessor-suspend': '1',
'image/hv-start-low': '4118806528', 'image/guest-os': 'linux',
'image/features/writable-descriptor-tables': '1', 'image/virt-base':
'3221225472', 'memory/target': '131072', 'image/guest-version': '2.6',
'image/features/supervisor-mode-kernel': '1', 'image/pae-mode': 'yes',
'console/limit': '1048576', 'image/paddr-offset': '3221225472',
'image/hypercall-page': '3238006784', 'image/suspend-cancel': '1',
'cpu/0/availability': 'online', 'image/features/pae-pgdir-above-4gb':
'1', 'image/features/writable-page-tables': '1',
'image/features/auto-translated-physmap': '1', 'name': 'test', 'domid':
'2', 'image/xen-version': 'xen-3.0', 'store/port': '1'}
[2008-06-12 11:24:41 2528] DEBUG (DevController:117) DevController:
writing {'protocol': 'x86_32-abi', 'state': '1', 'backend-id': '0',
'backend': '/local/domain/0/backend/console/2/0'} to
/local/domain/2/device/console/0.
[2008-06-12 11:24:41 2528] DEBUG (DevController:119) DevController:
writing {'domain': 'test', 'protocol': 'vt100', 'uuid':
'f116d906-4a3d-351b-68c1-19d4bec0fb5c', 'frontend':
'/local/domain/2/device/console/0', 'state': '1', 'location': '2',
'online': '1', 'frontend-id': '2'} to /local/domain/0/backend/console/2/0.
[2008-06-12 11:24:41 2528] DEBUG (XendDomainInfo:1040)
XendDomainInfo.handleShutdownWatch
[2008-06-12 11:24:41 2528] DEBUG (DevController:150) Waiting for devices
vif.
[2008-06-12 11:24:41 2528] DEBUG (DevController:155) Waiting for 0.
[2008-06-12 11:24:41 2528] DEBUG (DevController:594)
hotplugStatusCallback /local/domain/0/backend/vif/2/0/hotplug-status.
[2008-06-12 11:24:41 2528] DEBUG (DevController:594)
hotplugStatusCallback /local/domain/0/backend/vif/2/0/hotplug-status.
[2008-06-12 11:24:41 2528] DEBUG (DevController:608)
hotplugStatusCallback 1.
[2008-06-12 11:24:41 2528] DEBUG (DevController:150) Waiting for devices
usb.
[2008-06-12 11:24:41 2528] DEBUG (DevController:150) Waiting for devices
vbd.
[2008-06-12 11:24:41 2528] DEBUG (DevController:155) Waiting for 2049.
[2008-06-12 11:24:41 2528] DEBUG (DevController:594)
hotplugStatusCallback /local/domain/0/backend/vbd/2/2049/hotplug-status.
[2008-06-12 11:24:41 2528] DEBUG (DevController:594)
hotplugStatusCallback /local/domain/0/backend/vbd/2/2049/hotplug-status.
[2008-06-12 11:24:41 2528] DEBUG (DevController:608)
hotplugStatusCallback 2.
[2008-06-12 11:24:41 2528] DEBUG (XendDomainInfo:1802)
XendDomainInfo.destroy: domid=2
[2008-06-12 11:24:41 2528] DEBUG (XendDomainInfo:1821)
XendDomainInfo.destroyDomain(2)
[2008-06-12 11:24:41 2528] DEBUG (XendDomainInfo:1479) Removing vif/0
[2008-06-12 11:24:41 2528] DEBUG (XendDomainInfo:569)
XendDomainInfo.destroyDevice: deviceClass = vif, device = vif/0
[2008-06-12 11:24:41 2528] DEBUG (XendDomainInfo:1479) Removing vbd/2049
[2008-06-12 11:24:41 2528] DEBUG (XendDomainInfo:569)
XendDomainInfo.destroyDevice: deviceClass = vbd, device = vbd/2049
[2008-06-12 11:24:41 2528] DEBUG (XendDomainInfo:1479) Removing vbd/2050
[2008-06-12 11:24:41 2528] DEBUG (XendDomainInfo:569)
XendDomainInfo.destroyDevice: deviceClass = vbd, device = vbd/2050
[2008-06-12 11:24:41 2528] DEBUG (XendDomainInfo:1479) Removing console/0
[2008-06-12 11:24:41 2528] DEBUG (XendDomainInfo:569)
XendDomainInfo.destroyDevice: deviceClass = console, device = console/0
----------------------------------------
*xen-hotplug.log:*
-------------------------------
Nothing to flush.
/data/xen/domains/test/disk.img: Permission denied
xenstore-read: couldn't read path backend/vbd/2/2049/node
-------------------------------
The entire directory is world-accessible and writable, so there should
be no permission-problems with accessing the disk-images (VBD). I am
using the root-account to start the xen-vm.
*The configuration-file for the "test"-vm looks like this:*
-------------------------------
# Configuration file for the Xen instance vm01.example.com, created on
# Mon Jun 2 17:06:01 2008.
# Kernel + memory size
kernel = '/boot/vmlinuz-2.6.21.7-3.fc8xen'
ramdisk = '/boot/initrd-2.6.21.7-3.fc8xen.img'
memory = '128'
# Disk device(s).
root = '/dev/sda1 ro'
disk = [
'file:/data/xen/domains/test/disk.img,sda1,w',
'file:/data/xen/domains/test/swap.img,sda2,w' ]
# Hostname
name = 'test'
# Networking
dhcp = 'dhcp'
vif = [ '' ]
# Behaviour
on_poweroff = 'destroy'
on_reboot = 'restart'
on_crash = 'restart'
---------------------------------
An attempt to mount the disk-images to an unused-loop-device with
losetup works without any problems.
----------------------------------
[root@dmxen xen]# losetup /dev/loop0 /data/xen/domains/test/disk.img
[root@dmxen xen]# losetup -a
/dev/loop0: [0902]:192479239 (/data/xen/domains/test/disk.img)
----------------------------------
System details:
_Kernel:_ Linux dmxen 2.6.21.7-3.fc8xen #1 SMP Thu Mar 20 14:57:53 EDT
2008 i686 i686 i386 GNU/Linux
Xen-Version: Xen 3.1.2
Any help and information would be very welcome.
Thanks in advance
Christian
15 years, 10 months
Autostart VM on boot
by Marcel Damásio
Hi,
I'm using Fedora 8 as DOM0.
I created my virtual machines using virt-install.
Now I want to configure them to autostart on DOM0's boot, but I can't.
I tried a lot of solutions, but none worked.
Could somebody help me?
--
Marcel Damásio Moreira
9º período de Ciência da Computação - UFES
(27) 8128-7105
Estagiário do Suporte - DI/UFES
15 years, 10 months