Matthew Dougherty
2007-Feb-11 17:27 UTC
[Xen-users] New to ZEN: Wrong Logical Volume mounted to "/"
I setup various logical volumes for different domains. When I start a domain, it sets up the root file system and swap correctly but the actual "/" is the existing logical volume from domain 0. I''m sure it''s something simple that I have wrong. Here is part of the config: disk = [ ''phy:/dev/VirtualVolume/vir%d,sda1,w'' % (vmid), ''phy:/dev/VirtualVolume/virswp%d,sda2,w'' % (vmid) ] root = "/dev/sda1 ro" I did not notice any part of the installation instructions mentioning disabling /etc/ config file (fstab) and /etc/init scripts. Is there documentation you can point me to that will explain what I should change in /etc for the quest domains? Thanks. Matthew Dougherty mdougher@inch.com _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Henning Sprang
2007-Feb-14 10:53 UTC
Re: [Xen-users] New to ZEN: Wrong Logical Volume mounted to "/"
On 2/11/07, Matthew Dougherty <mdougher@inch.com> wrote:> > > > > I setup various logical volumes for different domains. When I start a > domain, it sets up the root file system and swap correctly but the actual > "/" is the existing logical volume from domain 0. I''m sure it''s something > simple that I have wrong.Sorry to say so, but you probbably get no reply on this because it''s hard to understand what''s your problem. You really mean, INSIDE your VM, the / filesystem has THE SAME contents than the / filesystem of your Domain 0? Are you sure - how did you check that? I don''t see how this can happen with such a config as you send it. (apart from, your dom0 root file system is /dev/VirtualVolume/vir%d ... As you disabling fstab in a guest: that''s wrong, either your reading the wrong howto, or misread it. You have to disable som, but not all lines in inittab, for some guest distributions. Henning _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Matthew Dougherty
2007-Feb-14 15:18 UTC
RE: [Xen-users] New to ZEN: Wrong Logical Volume mounted to "/"
I resolved it. I found a doc on the net somewhere. It was reading a copy of the Domain0 fstab. Is there a xensource document that outlines disabling/setting fstab, ifcfg-eth0, etc.? For some reason I didn''t catch that anywhere and had to rely on an untrusted source. Thanks for your input. Matt. Matthew Dougherty mdougher@inch.com 973-325-8556 AIM: mattsei SKYPE: MatthewDougherty_NJ -----Original message----- From: henning.sprang@gmail.com on behalf of Henning Sprang [henning_sprang@gmx.de] Sent: Wednesday, February 14, 2007 5:53 AM To: Matthew Dougherty [mdougher@inch.com] Cc: xen-users@lists.xensource.com Subject: Re: [Xen-users] New to ZEN: Wrong Logical Volume mounted to "/" On 2/11/07, Matthew Dougherty <mdougher@inch.com> wrote:> > > > > I setup various logical volumes for different domains. When I start a > domain, it sets up the root file system and swap correctly but the actual > "/" is the existing logical volume from domain 0. I''m sure it''s something > simple that I have wrong.Sorry to say so, but you probbably get no reply on this because it''s hard to understand what''s your problem. You really mean, INSIDE your VM, the / filesystem has THE SAME contents than the / filesystem of your Domain 0? Are you sure - how did you check that? I don''t see how this can happen with such a config as you send it. (apart from, your dom0 root file system is /dev/VirtualVolume/vir%d ... As you disabling fstab in a guest: that''s wrong, either your reading the wrong howto, or misread it. You have to disable som, but not all lines in inittab, for some guest distributions. Henning _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Henning Sprang
2007-Feb-15 14:37 UTC
Re: [Xen-users] New to ZEN: Wrong Logical Volume mounted to "/"
On 2/14/07, Matthew Dougherty <mdougher@inch.com> wrote:> I resolved it. I found a doc on the net somewhere. It was reading a copy > of the Domain0 fstab.I don''t understand what you mean here . A doc on the web that is reading a copy of the domain0 fstab? That makes no sense to me, sorry.> Is there a xensource document that outlines disabling/setting fstab,Again: fstab is NOT disabled. You only need the correct entries, in case you create your own - depenending on distribution and installation you use, it is generated for you. And it differs depending on guest OS you use and probably kernel, and disks you configured. Generating a little fstab is a very basic admin skill. Sorry to say, but, if you have major problems doing this(and that you talk about "disabling" fstab gives me some evidence this is so), you will to learn a lot until having fun with Xen, as it often requires much more than basic Linux Admin skills.> ifcfg-eth0, etc.? For some reason I didn''t catch that anywhere and had to > rely on an untrusted source.The "official" Xen manual does not deal a lot with the steps to do when installing a guest, as far as detailed config files inside the guest are concerned. The howtos mentioned in the wiki should help there. Be sure to select one matching your Domain 0 Distribution and version, adn fpor the right guest system. I know it can become confusing - be prepared to invest quite some time. Still, as with the fstab, if your at a very basic Linux level, and don''t know how to manually create a network config file, Xen might become hard for you, at least as it''s state of today is. You will need to learn a lot. I don''t want to say, you should go away here, and don''t ask questions. But you should defintely pick up one and another advanced Linux administration books - mostly the things you asked here are not really Xen specific, but intermediate/advanced Linux administration. And be prepared that you also get answers here saying "this isn''t a Xen question, but basic Linux Admin stuff". Hope this helps, and doesn''t scare you away :) Henning _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Matthew Dougherty
2007-Feb-15 15:22 UTC
Re: [Xen-users] New to ZEN: Wrong Logical Volume mounted to "/"
I resolved the problem by setting fstab and the network config scripts. Is there a document that outlines what config files should be manually addressed for a guest? It''s a little confusing because you set file systems and network configurations in the xm create config file and it''s difficult to see what is being handled by that and what needs to be addressed manually. Matt. Henning Sprang wrote:> On 2/14/07, Matthew Dougherty <mdougher@inch.com> wrote: >> I resolved it. I found a doc on the net somewhere. It was reading a >> copy >> of the Domain0 fstab. > > I don''t understand what you mean here . A doc on the web that is > reading a copy of the domain0 fstab? That makes no sense to me, sorry. > >> Is there a xensource document that outlines disabling/setting fstab, > > Again: fstab is NOT disabled. You only need the correct entries, in > case you create your own - depenending on distribution and > installation you use, it is generated for you. And it differs > depending on guest OS you use and probably kernel, and disks you > configured. > > Generating a little fstab is a very basic admin skill. Sorry to say, > but, if you have major problems doing this(and that you talk about > "disabling" fstab gives me some evidence this is so), you will to > learn a lot until having fun with Xen, as it often requires much more > than basic Linux Admin skills. > >> ifcfg-eth0, etc.? For some reason I didn''t catch that anywhere and >> had to >> rely on an untrusted source. > > The "official" Xen manual does not deal a lot with the steps to do > when installing a guest, as far as detailed config files inside the > guest are concerned. > > The howtos mentioned in the wiki should help there. Be sure to select > one matching your Domain 0 Distribution and version, adn fpor the > right guest system. I know it can become confusing - be prepared to > invest quite some time. > > Still, as with the fstab, if your at a very basic Linux level, and > don''t know how to manually create a network config file, Xen might > become hard for you, at least as it''s state of today is. You will need > to learn a lot. I don''t want to say, you should go away here, and > don''t ask questions. > > But you should defintely pick up one and another advanced Linux > administration books - mostly the things you asked here are not really > Xen specific, but intermediate/advanced Linux administration. And be > prepared that you also get answers here saying "this isn''t a Xen > question, but basic Linux Admin stuff". > > Hope this helps, and doesn''t scare you away :) > Henning > > _______________________________________________ > 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
Matthew Dougherty
2007-Feb-15 15:23 UTC
Re: [Xen-users] New to ZEN: Wrong Logical Volume mounted to "/"
Note: I''m using Fedora Core 5 Matthew Dougherty wrote:> I resolved the problem by setting fstab and the network config scripts. > > Is there a document that outlines what config files should be manually > addressed for a guest? > > It''s a little confusing because you set file systems and network > configurations in the xm create config file and it''s difficult to see > what is being handled by that and what needs to be addressed manually. > > Matt. > > Henning Sprang wrote: >> On 2/14/07, Matthew Dougherty <mdougher@inch.com> wrote: >>> I resolved it. I found a doc on the net somewhere. It was reading >>> a copy >>> of the Domain0 fstab. >> >> I don''t understand what you mean here . A doc on the web that is >> reading a copy of the domain0 fstab? That makes no sense to me, sorry. >> >>> Is there a xensource document that outlines disabling/setting fstab, >> >> Again: fstab is NOT disabled. You only need the correct entries, in >> case you create your own - depenending on distribution and >> installation you use, it is generated for you. And it differs >> depending on guest OS you use and probably kernel, and disks you >> configured. >> >> Generating a little fstab is a very basic admin skill. Sorry to say, >> but, if you have major problems doing this(and that you talk about >> "disabling" fstab gives me some evidence this is so), you will to >> learn a lot until having fun with Xen, as it often requires much more >> than basic Linux Admin skills. >> >>> ifcfg-eth0, etc.? For some reason I didn''t catch that anywhere and >>> had to >>> rely on an untrusted source. >> >> The "official" Xen manual does not deal a lot with the steps to do >> when installing a guest, as far as detailed config files inside the >> guest are concerned. >> >> The howtos mentioned in the wiki should help there. Be sure to select >> one matching your Domain 0 Distribution and version, adn fpor the >> right guest system. I know it can become confusing - be prepared to >> invest quite some time. >> >> Still, as with the fstab, if your at a very basic Linux level, and >> don''t know how to manually create a network config file, Xen might >> become hard for you, at least as it''s state of today is. You will need >> to learn a lot. I don''t want to say, you should go away here, and >> don''t ask questions. >> >> But you should defintely pick up one and another advanced Linux >> administration books - mostly the things you asked here are not really >> Xen specific, but intermediate/advanced Linux administration. And be >> prepared that you also get answers here saying "this isn''t a Xen >> question, but basic Linux Admin stuff". >> >> Hope this helps, and doesn''t scare you away :) >> Henning >> >> _______________________________________________ >> 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
Tim Post
2007-Feb-15 16:30 UTC
Re: [Xen-users] New to ZEN: Wrong Logical Volume mounted to "/"
On Thu, 2007-02-15 at 10:22 -0500, Matthew Dougherty wrote:> I resolved the problem by setting fstab and the network config scripts. > > Is there a document that outlines what config files should be manually > addressed for a guest?Just as you would any other server. The Xen config file simply populates the guest with its drives, ram, kernel, network interfaces. When that guest boots, treat it like you would any regular computer. You will need to (at the minimum) setup : /etc/fstab (so it matches the drives you gave the guest in the config file, rootfs and swap at the least). /etc/sysconfig/network-scripts/ifcfg-eth0 (if you want networking), or /etc/network/interfaces if using a GNU (Debian-ish or Debian) distro, /etc/passwd | shadow (if you want to set the root pass prior to booting /etc/resolv.conf (just throw 4.2.2.2 and 4.2.2.3 in there, or use the resolvers your data center / ISP gave you) /etc/hosts (the VM should know about itself and localhost at the least, if using NFS you''ll probably want more) /etc/hostname (depending on your distro)> It''s a little confusing because you set file systems and network > configurations in the xm create config file and it''s difficult to see > what is being handled by that and what needs to be addressed manually.Just remember, once you assign a VM drives and nics, the VM has to be told how to use them. Likewise, whatever OS you''re using has to be configured to the point that its usable. Part of the beauty and simplicity of Xen is guest OS''s (even PV), for all intensive purposes appear to be just a regular computer. So in short, whatever you''d setup on a regular computer using the OS you''re virtualizing, you must setup in a dom-u.> > Matt. > > Henning Sprang wrote: > > On 2/14/07, Matthew Dougherty <mdougher@inch.com> wrote: > >> I resolved it. I found a doc on the net somewhere. It was reading a > >> copy > >> of the Domain0 fstab. > > > > I don''t understand what you mean here . A doc on the web that is > > reading a copy of the domain0 fstab? That makes no sense to me, sorry. > > > >> Is there a xensource document that outlines disabling/setting fstab, > > > > Again: fstab is NOT disabled. You only need the correct entries, in > > case you create your own - depenending on distribution and > > installation you use, it is generated for you. And it differs > > depending on guest OS you use and probably kernel, and disks you > > configured. > > > > Generating a little fstab is a very basic admin skill. Sorry to say, > > but, if you have major problems doing this(and that you talk about > > "disabling" fstab gives me some evidence this is so), you will to > > learn a lot until having fun with Xen, as it often requires much more > > than basic Linux Admin skills. > > > >> ifcfg-eth0, etc.? For some reason I didn''t catch that anywhere and > >> had to > >> rely on an untrusted source. > > > > The "official" Xen manual does not deal a lot with the steps to do > > when installing a guest, as far as detailed config files inside the > > guest are concerned. > > > > The howtos mentioned in the wiki should help there. Be sure to select > > one matching your Domain 0 Distribution and version, adn fpor the > > right guest system. I know it can become confusing - be prepared to > > invest quite some time. > > > > Still, as with the fstab, if your at a very basic Linux level, and > > don''t know how to manually create a network config file, Xen might > > become hard for you, at least as it''s state of today is. You will need > > to learn a lot. I don''t want to say, you should go away here, and > > don''t ask questions. > > > > But you should defintely pick up one and another advanced Linux > > administration books - mostly the things you asked here are not really > > Xen specific, but intermediate/advanced Linux administration. And be > > prepared that you also get answers here saying "this isn''t a Xen > > question, but basic Linux Admin stuff". > > > > Hope this helps, and doesn''t scare you away :) > > Henning > > > > _______________________________________________ > > 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
Henning Sprang
2007-Feb-15 16:33 UTC
Re: [Xen-users] New to ZEN: Wrong Logical Volume mounted to "/"
On 2/15/07, Matthew Dougherty <mdougher@inch.com> wrote:> Note: I''m using Fedora Core 5In the Fedora Wiki are some very straightforward howtos, and ging after these you''ll probably have not problems with fstab and network configs. (as this sounds as a contraray to what I said before: On the other hand, if the fedora scripts fail, you again need quite some knowledge to fix it. - you might get some help on the fedora-xen list) Hening _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Matthew Dougherty
2007-Feb-15 17:20 UTC
Re: [Xen-users] New to ZEN: Wrong Logical Volume mounted to "/"
Thanks to you and Henning... It''s much appreciated. Tim Post wrote:> On Thu, 2007-02-15 at 10:22 -0500, Matthew Dougherty wrote: > >> I resolved the problem by setting fstab and the network config scripts. >> >> Is there a document that outlines what config files should be manually >> addressed for a guest? >> > > Just as you would any other server. The Xen config file simply populates > the guest with its drives, ram, kernel, network interfaces. When that > guest boots, treat it like you would any regular computer. > > You will need to (at the minimum) setup : > > /etc/fstab (so it matches the drives you gave the guest in the config > file, rootfs and swap at the least). > > /etc/sysconfig/network-scripts/ifcfg-eth0 (if you want networking), > or /etc/network/interfaces if using a GNU (Debian-ish or Debian) distro, > > /etc/passwd | shadow (if you want to set the root pass prior to booting > > /etc/resolv.conf (just throw 4.2.2.2 and 4.2.2.3 in there, or use the > resolvers your data center / ISP gave you) > > /etc/hosts (the VM should know about itself and localhost at the least, > if using NFS you''ll probably want more) > > /etc/hostname (depending on your distro) > > >> It''s a little confusing because you set file systems and network >> configurations in the xm create config file and it''s difficult to see >> what is being handled by that and what needs to be addressed manually. >> > > Just remember, once you assign a VM drives and nics, the VM has to be > told how to use them. Likewise, whatever OS you''re using has to be > configured to the point that its usable. > > Part of the beauty and simplicity of Xen is guest OS''s (even PV), for > all intensive purposes appear to be just a regular computer. So in > short, whatever you''d setup on a regular computer using the OS you''re > virtualizing, you must setup in a dom-u. > > >> Matt. >> >> Henning Sprang wrote: >> >>> On 2/14/07, Matthew Dougherty <mdougher@inch.com> wrote: >>> >>>> I resolved it. I found a doc on the net somewhere. It was reading a >>>> copy >>>> of the Domain0 fstab. >>>> >>> I don''t understand what you mean here . A doc on the web that is >>> reading a copy of the domain0 fstab? That makes no sense to me, sorry. >>> >>> >>>> Is there a xensource document that outlines disabling/setting fstab, >>>> >>> Again: fstab is NOT disabled. You only need the correct entries, in >>> case you create your own - depenending on distribution and >>> installation you use, it is generated for you. And it differs >>> depending on guest OS you use and probably kernel, and disks you >>> configured. >>> >>> Generating a little fstab is a very basic admin skill. Sorry to say, >>> but, if you have major problems doing this(and that you talk about >>> "disabling" fstab gives me some evidence this is so), you will to >>> learn a lot until having fun with Xen, as it often requires much more >>> than basic Linux Admin skills. >>> >>> >>>> ifcfg-eth0, etc.? For some reason I didn''t catch that anywhere and >>>> had to >>>> rely on an untrusted source. >>>> >>> The "official" Xen manual does not deal a lot with the steps to do >>> when installing a guest, as far as detailed config files inside the >>> guest are concerned. >>> >>> The howtos mentioned in the wiki should help there. Be sure to select >>> one matching your Domain 0 Distribution and version, adn fpor the >>> right guest system. I know it can become confusing - be prepared to >>> invest quite some time. >>> >>> Still, as with the fstab, if your at a very basic Linux level, and >>> don''t know how to manually create a network config file, Xen might >>> become hard for you, at least as it''s state of today is. You will need >>> to learn a lot. I don''t want to say, you should go away here, and >>> don''t ask questions. >>> >>> But you should defintely pick up one and another advanced Linux >>> administration books - mostly the things you asked here are not really >>> Xen specific, but intermediate/advanced Linux administration. And be >>> prepared that you also get answers here saying "this isn''t a Xen >>> question, but basic Linux Admin stuff". >>> >>> Hope this helps, and doesn''t scare you away :) >>> Henning >>> >>> _______________________________________________ >>> 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