dear users, thanks for that great piece of software. I have to admit that i''m quite new to xen and it''s tools, so it might be a lack of knowledge which brings me to this problem: I use Debian Etch with a AMD64 System (Intel Core 2 Duo 6550) I decided to build the whole xen system by my own, far away from debian repositories. So i compiled the xen 2.6.18-8-xen kernel and the xen-3.3 tools and environment. I step in some problem which i could work out almost. One nagging thingy remains: If i understand correctly, xen holds a database for the virtual machines. If i state the command xm create machine1, there will be an entry in the database with all of the configuration options as setup in the /etc/xen/machine1 script. if i want to make changes in the configuration file, i would edit that file and then remove the old settings in the database by that stanza: xm delete machine1 that only gives me the following error: Error: <Fault 3: ''machine1''> Usage: xm delete <DomainName> How can this be solved, do i miss something? Any help is greatly appreciated regards Stefan Bauer _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Nemeth, Tamas
2008-Sep-17 15:17 UTC
Re: [Xen-users] xm delete - Error: <Fault 3: ''machine1''>
It''s like no domain (domU) exists with the name machine1. Please issue this command: "xm list". What are the results? 2008. 09. 17, szerda keltezéssel 17.10-kor Stefan Bauer ezt írta:> dear users, > > thanks for that great piece of software. > > I have to admit that i''m quite new to xen and it''s tools, so it might be > a lack of knowledge which brings me to this problem: > > I use Debian Etch with a AMD64 System (Intel Core 2 Duo 6550) > > I decided to build the whole xen system by my own, far away from debian > repositories. So i compiled the xen 2.6.18-8-xen kernel and the xen-3.3 > tools and environment. > > I step in some problem which i could work out almost. One nagging thingy > remains: > > If i understand correctly, xen holds a database for the virtual > machines. If i state the command xm create machine1, there will be an > entry in the database with all of the configuration options as setup in > the /etc/xen/machine1 script. > > if i want to make changes in the configuration file, i would edit that > file and then remove the old settings in the database by that stanza: > > xm delete machine1 > > that only gives me the following error: > > Error: <Fault 3: ''machine1''> > Usage: xm delete <DomainName> > > How can this be solved, do i miss something? > > Any help is greatly appreciated > > regards > > Stefan Bauer > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
<Fabian.Flaegel@t-systems.com>
2008-Sep-17 15:22 UTC
AW: [Xen-users] xm delete - Error: <Fault 3: ''machine1''>
Exactly. And if the maschine would run you would get an error like that: Error: Domain is not halted. Usage: xm delete <DomainName> Just restart your machine to get your new config to work. Regards Fabian>-----Ursprüngliche Nachricht----- >Von: xen-users-bounces@lists.xensource.com [mailto:xen-users- >bounces@lists.xensource.com] Im Auftrag von Nemeth, Tamas >Gesendet: Mittwoch, 17. September 2008 17:18 >An: Stefan Bauer >Cc: xen-users@lists.xensource.com >Betreff: Re: [Xen-users] xm delete - Error: <Fault 3: ''machine1''> > >It''s like no domain (domU) exists with the name machine1. >Please issue this command: "xm list". What are the results? > >2008. 09. 17, szerda keltezéssel 17.10-kor Stefan Bauer ezt írta: >> dear users, >> >> thanks for that great piece of software. >> >> I have to admit that i''m quite new to xen and it''s tools, so it might be >> a lack of knowledge which brings me to this problem: >> >> I use Debian Etch with a AMD64 System (Intel Core 2 Duo 6550) >> >> I decided to build the whole xen system by my own, far away from debian >> repositories. So i compiled the xen 2.6.18-8-xen kernel and the xen-3.3 >> tools and environment. >> >> I step in some problem which i could work out almost. One nagging thingy >> remains: >> >> If i understand correctly, xen holds a database for the virtual >> machines. If i state the command xm create machine1, there will be an >> entry in the database with all of the configuration options as setup in >> the /etc/xen/machine1 script. >> >> if i want to make changes in the configuration file, i would edit that >> file and then remove the old settings in the database by that stanza: >> >> xm delete machine1 >> >> that only gives me the following error: >> >> Error: <Fault 3: ''machine1''> >> Usage: xm delete <DomainName> >> >> How can this be solved, do i miss something? >> >> Any help is greatly appreciated >> >> regards >> >> Stefan Bauer >> >> _______________________________________________ >> Xen-users mailing list >> Xen-users@lists.xensource.com >> http://lists.xensource.com/xen-users > > >_______________________________________________ >Xen-users mailing list >Xen-users@lists.xensource.com >http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Stefan Bauer
2008-Sep-17 15:25 UTC
Re: [Xen-users] xm delete - Error: <Fault 3: ''machine1''>
* Fabian.Flaegel@t-systems.com <Fabian.Flaegel@t-systems.com> [17.09.2008 17:22]:> Exactly. And if the maschine would run you would get an error like that: > > Error: Domain is not halted. > Usage: xm delete <DomainName> > > Just restart your machine to get your new config to work.Well, currently i always destroyed the machine, which should be the same as restarting right? But unfortunately the old settings persists. regards Stefan Bauer _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
<Fabian.Flaegel@t-systems.com>
2008-Sep-17 15:29 UTC
AW: [Xen-users] xm delete - Error: <Fault 3: ''machine1''>
Xm destroy is switching the light off. Not the nice way... :) If your machine works, you can connect via xm console <DomName> and shutdown it manually. What are the settings that persist? Normally you should start the machine with xm create <config-file> and these settings are fixed in the CF. Regards Fabian>-----Ursprüngliche Nachricht----- >Von: xen-users-bounces@lists.xensource.com [mailto:xen-users- >bounces@lists.xensource.com] Im Auftrag von Stefan Bauer >Gesendet: Mittwoch, 17. September 2008 17:26 >An: xen-users@lists.xensource.com >Betreff: Re: [Xen-users] xm delete - Error: <Fault 3: ''machine1''> > >* Fabian.Flaegel@t-systems.com <Fabian.Flaegel@t-systems.com> [17.09.2008 >17:22]: >> Exactly. And if the maschine would run you would get an error like that: >> >> Error: Domain is not halted. >> Usage: xm delete <DomainName> >> >> Just restart your machine to get your new config to work. > > >Well, currently i always destroyed the machine, which should be the same >as restarting right? > >But unfortunately the old settings persists. > >regards > >Stefan Bauer > >_______________________________________________ >Xen-users mailing list >Xen-users@lists.xensource.com >http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Stefan Bauer
2008-Sep-17 15:33 UTC
Re: [Xen-users] xm delete - Error: <Fault 3: ''machine1''>
* Fabian.Flaegel@t-systems.com <Fabian.Flaegel@t-systems.com> [17.09.2008 17:29]:> Xm destroy is switching the light off. Not the nice way... :)That was just for testing purpose.> If your machine works, you can connect via xm console <DomName> and shutdown it manually.I was trying to debug some network issues with my udev scripts - so the machine did not come up correctly, so i had to change settings more than 20times.> What are the settings that persist?In my case there was options for vnc and the disk settings which did not get changed after a hard destroy.> Normally you should start the machine with xm create <config-file> and these settings are fixed in the CF.So whats the use of xm delete at all? regards Stefan Bauer _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
<Fabian.Flaegel@t-systems.com>
2008-Sep-17 15:41 UTC
AW: [Xen-users] xm delete - Error: <Fault 3: ''machine1''>
In my book "Xen - Virtualisierung unter Linux" i find the following: "Xm delete removes a domain from the configurationdatabase. This is necessary after modifying the configuration file. (!) xm new cannot overwrite old configs. Xm delete removes the original Domains-UUID. It will be recreate with another xm new." Does this help? Regards Fabian>-----Ursprüngliche Nachricht----- >Von: xen-users-bounces@lists.xensource.com [mailto:xen-users- >bounces@lists.xensource.com] Im Auftrag von Stefan Bauer >Gesendet: Mittwoch, 17. September 2008 17:34 >An: xen-users@lists.xensource.com >Betreff: Re: [Xen-users] xm delete - Error: <Fault 3: ''machine1''> > >* Fabian.Flaegel@t-systems.com <Fabian.Flaegel@t-systems.com> [17.09.2008 >17:29]: >> Xm destroy is switching the light off. Not the nice way... :) > >That was just for testing purpose. > >> If your machine works, you can connect via xm console <DomName> and >shutdown it manually. > >I was trying to debug some network issues with my udev scripts - so the >machine did not come up correctly, so i had to change settings more than >20times. >> What are the settings that persist? > >In my case there was options for vnc and the disk settings which did not >get changed after a hard destroy. > >> Normally you should start the machine with xm create <config-file> and >these settings are fixed in the CF. > >So whats the use of xm delete at all? > >regards > >Stefan Bauer > >_______________________________________________ >Xen-users mailing list >Xen-users@lists.xensource.com >http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Stefan Bauer
2008-Sep-17 16:24 UTC
Re: [Xen-users] xm delete - Error: <Fault 3: ''machine1''>
* Fabian.Flaegel@t-systems.com <Fabian.Flaegel@t-systems.com> [17.09.2008 17:42]:> "Xm delete removes a domain from the configurationdatabase. This is necessary after modifying the configuration file. (!) xm new cannot overwrite old configs. > > Xm delete removes the original Domains-UUID. It will be recreate with another xm new."No, to repeat myself: I want state xm delete to remove a domain from the configuration database as mentioned in my first post. But i cant because i get Error: <Fault 3: ''machine1''> regards stefan _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
<Fabian.Flaegel@t-systems.com>
2008-Sep-18 12:31 UTC
AW: [Xen-users] xm delete - Error: <Fault 3: ''machine1''>
Hi Stefan,>> "Xm delete removes a domain from the configurationdatabase. This is >necessary after modifying the configuration file. (!) xm new cannot >overwrite old configs. >> >> Xm delete removes the original Domains-UUID. It will be recreate with >another xm new." > >No, to repeat myself: I want state xm delete to remove a domain fromthe>configuration database as mentioned in my first post. But i cantbecause>i get Error: <Fault 3: ''machine1''>This happens if your machine is up. Does is work when your machine is down? It worked for me, even without xm delete, to get a new config on a vm. I am running an Ubuntu Server 8.04 LTS here. Maybe that''s a reason. Regards Fabian _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Stefan Bauer
2008-Sep-18 12:59 UTC
Re: AW: [Xen-users] xm delete - Error: <Fault 3: ''machine1''>
Fabian.Flaegel@t-systems.com schrieb:> This happens if your machine is up. Does is work when your machine is > down?It does not work no matter if it''s on or off. Have you verified if you get the new settings after you change something in the xen machine configuration in /etc/xen/... ? Could you please provide the running xen related processes displayed by ps? What xen-hypervisor && xen-utils do ubuntu 8.04 lts ship by default? with frustrated greetings Stefan _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
<Fabian.Flaegel@t-systems.com>
2008-Sep-18 13:08 UTC
AW: AW: [Xen-users] xm delete - Error: <Fault 3: ''machine1''>
>Fabian.Flaegel@t-systems.com schrieb: >> This happens if your machine is up. Does is work when your machine is >> down? > >It does not work no matter if it''s on or off. Have you verified if you >get the new settings after you change something in the xen machine >configuration in /etc/xen/... ?Yes it does. We did it about 50 times during setup. :)>Could you please provide the running xen related processes displayed >by ps? > >What xen-hypervisor && xen-utils do ubuntu 8.04 lts ship by default?# ps aux | grep xen root 30 0.0 0.0 0 0 ? S< Sep02 0:08 [xenwatch] root 31 0.0 0.0 0 0 ? S< Sep02 0:00 [xenbus] root 5705 0.0 0.0 8636 1136 ? S Sep02 0:58 xenstored --pid-file /var/run/xenstore.pid root 5711 0.0 0.0 22720 2896 ? Sl Sep02 0:09 xenconsoled root 5714 0.0 0.0 95000 9296 ? S Sep02 0:00 python /usr/sbin/xend start root 5716 0.1 0.2 249388 29432 ? Sl Sep02 29:01 python /usr/sbin/xend start root 25998 0.0 0.0 5164 828 pts/5 R+ 17:06 0:00 grep xen # ps aux | grep tap root 22712 0.0 0.0 20300 784 ? S Sep04 0:07 tapdisk /var/run/tap/tapctrlwrite1 /var/run/tap/tapctrlread1 root 22858 0.0 0.0 0 0 ? S< Sep04 0:00 [blktap.84.sda1] root 22900 0.0 0.0 20300 784 ? S Sep04 0:02 tapdisk /var/run/tap/tapctrlwrite2 /var/run/tap/tapctrlread2 root 23065 0.0 0.0 0 0 ? S< Sep04 0:00 [blktap.85.sda1] root 23342 0.0 0.0 20300 784 ? S Sep04 0:22 tapdisk /var/run/tap/tapctrlwrite4 /var/run/tap/tapctrlread4 root 23481 0.0 0.0 0 0 ? S< Sep04 0:02 [blktap.87.sda1] # dpkg -l |grep xen ii libxen3 3.2.0-0ubuntu10 library interface for Xen, a Virtual Machine ii libxen3.1 3.1.0-0ubuntu19 library interface for Xen, a Virtual Machine ii linux-backports-modules-2.6.24-19-xen 2.6.24-19.17 Ubuntu supplied Linux modules for version 2. ii linux-backports-modules-hardy-xen 2.6.24.19.21 Backported drivers for xen kernel image ii linux-headers-2.6.24-16-xen 2.6.24-16.30 Linux kernel headers for version 2.6.24 on T ii linux-image-2.6.24-16-xen 2.6.24-16.30 Linux kernel image for version 2.6.24 on Thi ii linux-image-2.6.24-19-xen 2.6.24-19.36 Linux kernel image for version 2.6.24 on Thi ii linux-image-xen 2.6.24.19.21 Real time Linux kernel image ii linux-restricted-modules-2.6.24-16-xen 2.6.24.12-16.34 Non-free Linux 2.6.24 modules on Xen ii linux-restricted-modules-2.6.24-19-xen 2.6.24.13-19.45 Non-free Linux 2.6.24 modules on Xen ii linux-restricted-modules-xen 2.6.24.19.21 Restricted Linux modules for xen kernels ii linux-ubuntu-modules-2.6.24-16-xen 2.6.24-16.23 Ubuntu supplied Linux modules for version 2. ii linux-ubuntu-modules-2.6.24-19-xen 2.6.24-19.28 Ubuntu supplied Linux modules for version 2. ii linux-xen 2.6.24.19.21 Complete xen Linux kernel ii python-xen-3.2 3.2.0-0ubuntu10 python bindings for Xen, a Virtual Machine M ii ubuntu-xen-server 0.0.1-2ubuntu8 Xen software for running on servers ii xen-docs-3.2 3.2.0-0ubuntu10 documentation for XEN, a Virtual Machine Mon rc xen-hypervisor-3.1 3.1.0-0ubuntu19 The Xen Hypervisor for i386, amd64 amd lpia ii xen-hypervisor-3.2 3.2.0-0ubuntu10 The Xen Hypervisor for i386 and amd64. ii xen-shell 1.8-1 Console based Xen administration utility ii xen-tools 3.8-4ubuntu4 Tools to manage debian XEN virtual servers rc xen-utils-3.1 3.1.0-0ubuntu19 XEN administrative tools ii xen-utils-3.2 3.2.0-0ubuntu10 XEN administrative tools Xen 3.2 is used.>with frustrated greetingsHope it''s solved soon. :) Regards, Fabian _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Stefan Bauer
2008-Sep-18 13:13 UTC
Re: AW: AW: [Xen-users] xm delete - Error: <Fault 3: ''machine1''>
Fabian.Flaegel@t-systems.com schrieb:> Yes it does. We did it about 50 times during setup. :)I did not expected anything else :p>> Could you please provide the running xen related processes displayed >> by ps?thanks for providing further informations. Regards stefan _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Nemeth, Tamas
2008-Sep-19 08:34 UTC
Re: AW: AW: [Xen-users] xm delete - Error: <Fault 3: ''machine1''>
Hi! 1. There are the virtual domain initial startup files, describing the domains (domUs). I think, these files are mostly used when creating domains, in spite the fact, that it''s no longer recommended. We should export the domU config from xend by "xm list -l DOMAINNAME > DUMPFILE" into a text file, modify that file, and reimport by "xm new -F DUMPFILE" 2. The name of domU isn''t derived from the filename of it''s virtual domain initial startup file, but from the "name=DOMAINNAME" parameter of that file, which means, the name of the domU may be totally different from that of the config file. Pay attention to this, when just copying domain config files! 3. There can be some directives in the config files, which instruct xend what to do to the domain under some circumstances: on_poweroff, on_reboot, on_crash, on_xend_start, on_xend_stop, etc. Read this: http://www.novell.com/documentation/vmserver/config_options/index.html?page=/documentation/vmserver/config_options/data/bookinfo.html and use google. 4. xm behaves the following way: -"xm new CONFIGFILE" : create a domU in xenstore (http://wiki.xensource.com/xenwiki/XenStore), but don''t start it yet. A domain created by xm new is stored persistently in xenstore, which means, it will remains there after shutting down that domU, or even rebooting the whole dom0. -"xm create CONFIGFILE" : create, AND START a domU. Domains created this way will be deleted from the xenstore when stopped. -"xm shutdown DOMAINNAME" : shut down the domU normally. Xend send a message to the domUs kernel, which behaves like the (ATX) power button were pressed on a real computer. It works only with paravirtualized domains, except when using the GPL PV drivers for HVM Windows guests. Beware! They are unstable, and can cause severe filesystem damage: http://wiki.xensource.com/xenwiki/XenWindowsGplPv -"xm destroy DOMAINNAME" : Terminate the domU immediately, which is like unplugging a real computer from elecrtricity. "xm shutdown" equals "xm destroy" for HVM guests. -"xm delete DOMAINNAME" : Delete a domain, which is present in xenstore, but not running! This is only possible for domains created with "xm new", and the shut down somehow. You can view some runtime parameters of dumUs with the command "xentop", but it only shows the running domains! If you want to view all the domains int the xenstore (even stopped ones), the use this command :"xm list". Can you solve your problems now? 2008. 09. 18, csütörtök keltezéssel 15.13-kor Stefan Bauer ezt írta:> Fabian.Flaegel@t-systems.com schrieb: > > Yes it does. We did it about 50 times during setup. :) > > I did not expected anything else :p > > >> Could you please provide the running xen related processes displayed > >> by ps? > > thanks for providing further informations. > > Regards > > stefan > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Nemeth, Tamas
2008-Sep-19 10:04 UTC
Re: [Xen-users] xm delete - Error: <Fault 3: ''machine1''>
> So if i copy the winxp-sp3 configuration file to test1234 > and also change the name to test1234, the new settings will > be used. so there must be a place where old informations > get stored persistent.There may be config files hiding somewhere. Give the FILL path name for xm, and search for the old files in diretories like /etc/xen/vm /var/lib/xend/domains, etc.> I never used xm new before, so the xenstore database you mentioned must be empty.Are you sure? What does "xm list" say? _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Stefan Bauer
2008-Sep-19 10:21 UTC
Re: [Xen-users] xm delete - Error: <Fault 3: ''machine1''>
* Nemeth, Tamas <nice@titanic.nyme.hu> [19.09.2008 12:05]:> There may be config files hiding somewhere. Give the FILL path name for > xm, and search for the old files in diretories > like /etc/xen/vm /var/lib/xend/domains, etc./etc/xen/vm does not exist nor are there any hidden files. /var/lib/xen is empty /var/lib/xend/domains is empty /var/lib/xend/state holds: drwxr-xr-x 3 root root 4096 2008-09-16 16:25 . drwxr-xr-x 5 root root 4096 2008-09-14 16:52 .. -rw-r--r-- 1 root root 1664 2008-09-19 09:37 cpu.xml -rw-r--r-- 1 root root 471 2008-09-19 09:37 host.xml drwxr-xr-x 2 root root 4096 2008-09-14 16:52 local_sr -rw-r--r-- 1 root root 1581 2008-09-19 09:37 network.xml -rw-r--r-- 1 root root 31 2008-09-19 09:37 pbd.xml -rw-r--r-- 1 root root 571 2008-09-19 09:37 pif.xml -rw-r--r-- 1 root root 21944 2008-09-19 09:37 ppci.xml -rw-r--r-- 1 root root 1258 2008-09-19 09:37 sr.xml /var/lib/xend/storage is empty /var/lib/xendstored only got one tdb file: tdb: TDB database version 6, little-endian hash size 7919 bytes etch64dom0:/var/lib/xenstored# strings tdb | grep winxp-sp3 winxp-sp3device winxp-sp3 winxp-sp3c winxp-sp3ce-misc /xen/winxp-sp3.img winxp-sp3device -domain-name winxp-sp3 -nographic -vcpus 1 -boot c -usb -usbdevice tablet -net nic,vlan=1,macaddr=00:16:3E:00:00:04,model=rtl8139 -net tap,vlan=1,ifname=tap8.0,bridge=xenbr0/d winxp-sp3ernel Her are the new settings, boot from c is correct.> > I never used xm new before, so the xenstore database you mentioned must be empty. > > Are you sure? What does "xm list" say?etch64dom0:/etc/xen# xm list Name ID Mem VCPUs State Time(s) Domain-0 0 1024 2 r----- 366.4 david 5 512 1 -b---- 13.2 freenx 4 512 1 -b---- 50.3 Regards stefan _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Stefan Bauer
2008-Sep-19 12:18 UTC
SOLVED! Re: [Xen-users] xm delete - Error: <Fault 3: ''machine1''>
I coult work that problem out. I miss pyhton-xml package on my debian etch. Maybe that should go to the needed packages mentioned in the source directory of xen-3.3 README-file. Thanks again. Regards -- Stefan Bauer _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users