Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 36

Thread: How to : OpenVZ Ubuntu Host

  1. #11
    Join Date
    Jan 2005
    Beans
    Hidden!

    Re: How to : OpenVZ Ubuntu Host

    Hello there.

    I'm very excited about trying OpenVZ, but I'm waiting for the availability of a Kernel in the repositories. I was looking around and I found this page:

    http://wiki.openvz.org/Ubuntu_Hardy_TODO

    Anybody knows if there's other places where I can follow the development status? I couldn't find much on launchpad. I think it would be nice to have a few people testing it.

    incubus

  2. #12
    Join Date
    Apr 2006
    Location
    Montana
    Beans
    Hidden!
    Distro
    Kubuntu Development Release

    Re: How to : OpenVZ Ubuntu Host

    Moved to Tips and Tutorials.
    There are two mistakes one can make along the road to truth...not going all the way, and not starting.
    --Prince Gautama Siddharta

    #ubuntuforums web interface

  3. #13
    Join Date
    Nov 2007
    Beans
    8

    Re: How to : OpenVZ Ubuntu Host

    Thanks for the excellent post. I was able to setup VZ in a few mins thanks to you.

    I want to run multiple VE on my ubuntu box .. but I am running into problem with bridge (I created two bridges to use with two VEs. Once bridge is able to get dhcp IP, but the other is not able to).

    Could you post some tips on creating and running multiple VEs ?

    - Ram

  4. #14
    Join Date
    Apr 2006
    Location
    Montana
    Beans
    Hidden!
    Distro
    Kubuntu Development Release

    Re: How to : OpenVZ Ubuntu Host

    Quote Originally Posted by rampras View Post
    Thanks for the excellent post. I was able to setup VZ in a few mins thanks to you.

    I want to run multiple VE on my ubuntu box .. but I am running into problem with bridge (I created two bridges to use with two VEs. Once bridge is able to get dhcp IP, but the other is not able to).

    Could you post some tips on creating and running multiple VEs ?

    - Ram
    OK, scroll up and set up your bridge ....

    Now, assuming your bridge is up, let me give you an example :

    1. Create two new VE:

    Code:
    root@GutsyVZ:~ #vzctl create 401 --ostemplate debian-4.0-i386-minimal
    Creating VE private area (debian-4.0-i386-minimal)
    Performing postcreate actions
    VE private area was created
    
    root@GutsyVZ:~ #vzctl create 402 --ostemplate debian-4.0-i386-minimal
    Creating VE private area (debian-4.0-i386-minimal)
    Performing postcreate actions
    VE private area was created

    2. Create a virtual eth0 on each VE :

    Code:
    root@GutsyVZ:~vzctl set 401 --netif_add eth0 --hostname Debian1 --nameserver 19--2.1.1.1 --save
    Saved parameters for VE 401
    
    root@GutsyVZ:~vzctl set 402 --netif_add eth0 --hostname Debian2 --nameserver 19--2.1.1.1 --save
    Saved parameters for VE 402

    3. Start your VE :
    NOTE THE NAME OF THE veth (bold)

    Code:
    root@GutsyVZ:~ #vzctl start 401
    Starting VE ...
    VE is mounted
    Setting CPU units: 1000
    Configure meminfo: 49152
    Configure veth devices: veth401.0
    VE start in progress...
    
    root@GutsyVZ:~ #vzctl start 402
    Starting VE ...
    VE is mounted
    Setting CPU units: 1000
    Configure meminfo: 49152
    Configure veth devices: veth402.0 
    VE start in progress...

    4. Add the veth to your bridge :

    Code:
    root@GutsyVZ:~brctl addif br0 veth401.0
    root@GutsyVZ:~ #brctl addif br0 veth402.0

    5. Obtain an ip via dhclient

    Code:
    root@GutsyVZ:~vzctl exec 401 dhclient eth0
    Internet Systems Consortium DHCP Client V3.0.4
    Copyright 2004-2006 Internet Systems Consortium.
    All rights reserved.
    For info, please visit http://www.isc.org/sw/dhcp/
    
    Listening on LPF/eth0/00:18:51:93:2b:dc
    Sending on   LPF/eth0/00:18:51:93:2b:dc
    Sending on   Socket/fallback
    DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3
    DHCPOFFER from 192.168.1.5
    DHCPREQUEST on eth0 to 255.255.255.255 port 67
    DHCPACK from 192.168.1.5
    bound to 192.168.1.9 -- renewal in 39643 seconds.
    
    root@GutsyVZ:~ #vzctl exec 402 dhclient eth0
    Internet Systems Consortium DHCP Client V3.0.4
    Copyright 2004-2006 Internet Systems Consortium.
    All rights reserved.
    For info, please visit http://www.isc.org/sw/dhcp/
    
    Listening on LPF/eth0/00:18:51:bb:8a:b9
    Sending on   LPF/eth0/00:18:51:bb:8a:b9
    Sending on   Socket/fallback
    DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
    DHCPOFFER from 192.168.1.5
    DHCPREQUEST on eth0 to 255.255.255.255 port 67
    DHCPACK from 192.168.1.5
    bound to 192.168.1.10 -- renewal in 40010 seconds.

    6. Test internet connection with a ping :

    Code:
    root@GutsyVZ:~ #vzctl exec 401 ping -c 4 www.google.com
    PING www.l.google.com (209.85.173.103) 56(84) bytes of data.
    64 bytes from mh-in-f103.google.com (209.85.173.103): icmp_seq=1 ttl=241 time=78.7 ms
    64 bytes from mh-in-f103.google.com (209.85.173.103): icmp_seq=2 ttl=241 time=78.5 ms
    64 bytes from mh-in-f103.google.com (209.85.173.103): icmp_seq=3 ttl=241 time=79.5 ms
    64 bytes from mh-in-f103.google.com (209.85.173.103): icmp_seq=4 ttl=241 time=79.3 ms
    
    --- www.l.google.com ping statistics ---
    4 packets transmitted, 4 received, 0% packet loss, time 3000ms
    rtt min/avg/max/mdev = 78.563/79.070/79.545/0.454 ms
    
    
    root@GutsyVZ:~ #vzctl exec 402 ping -c 4 www.google.com
    PING www.l.google.com (209.85.173.103) 56(84) bytes of data.
    64 bytes from mh-in-f103.google.com (209.85.173.103): icmp_seq=1 ttl=241 time=79.7 ms
    64 bytes from mh-in-f103.google.com (209.85.173.103): icmp_seq=2 ttl=241 time=79.2 ms
    64 bytes from mh-in-f103.google.com (209.85.173.103): icmp_seq=3 ttl=241 time=80.2 ms
    64 bytes from mh-in-f103.google.com (209.85.173.103): icmp_seq=4 ttl=241 time=78.3 ms
    
    --- www.l.google.com ping statistics ---
    4 packets transmitted, 4 received, 0% packet loss, time 3001ms
    rtt min/avg/max/mdev = 78.303/79.395/80.285/0.731 ms
    HTH

    Peace be with you,

    bodhi.zazen
    There are two mistakes one can make along the road to truth...not going all the way, and not starting.
    --Prince Gautama Siddharta

    #ubuntuforums web interface

  5. #15
    Join Date
    Oct 2008
    Beans
    1

    Re: How to : OpenVZ Ubuntu Host

    Hi,
    thanks for how to, is excellent

    but I have a problem with xorg inside the VE...

    output the command startx inside the VE is:

    Code:
    xauth:  creating new authority file //.Xauthority
    xauth:  creating new authority file //.Xauthority
    
    X: warning; process set to priority -1 instead of requested priority 0
    
    This is a pre-release version of the X server from The X.Org Foundation.
    It is not supported in any way.
    Bugs may be filed in the bugzilla at http://bugs.freedesktop.org/.
    Select the "xorg" product for bugs you find in this release.
    Before reporting bugs in pre-release versions please check the
    latest version in the X.Org Foundation git repository.
    See http://wiki.x.org/wiki/GitPage for git access instructions.
    
    X.Org X Server 1.4.0.90
    Release Date: 5 September 2007
    X Protocol Version 11, Revision 0
    Build Operating System: Linux Ubuntu (xorg-server 2:1.4.1~git20080131-1ubuntu9.2)
    Current Operating System: Linux test1 2.6.24-19-openvz #1 SMP Thu Aug 21 04:18:17 UTC 2008 i686
    Build Date: 13 June 2008  01:08:21AM
     
    	Before reporting problems, check http://wiki.x.org
    	to make sure that you have the latest version.
    Module Loader present
    Markers: (--) probed, (**) from config file, (==) default setting,
    	(++) from command line, (!!) notice, (II) informational,
    	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
    (==) Log file: "/var/log/Xorg.0.log", Time: Sat Oct  4 16:59:04 2008
    (==) Using config file: "/etc/X11/xorg.conf"
    
    Fatal server error:
    xf86OpenConsole: Cannot open /dev/tty0 (No such file or directory)
    
    giving up.
    xinit:  Connection reset by peer (errno 104):  unable to connect to X server
    xinit:  No such process (errno 3):  Server error.
    you know how solve?

    P.S. Sorry for my English

  6. #16
    Join Date
    Apr 2006
    Location
    Montana
    Beans
    Hidden!
    Distro
    Kubuntu Development Release

    Re: How to : OpenVZ Ubuntu Host

    This guide is a *little* outdated.

    For X connections see :

    How to Xephyr ~ AKA Multiple, nested X sessions - Ubuntu Forums
    There are two mistakes one can make along the road to truth...not going all the way, and not starting.
    --Prince Gautama Siddharta

    #ubuntuforums web interface

  7. #17
    Join Date
    Oct 2006
    Location
    Greece
    Beans
    Hidden!
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: How to : OpenVZ Ubuntu Host

    Are there any news on an intrepid-friendly OpenVZ kernel?

    I see that Debian have a 2.6.26 kernel with openvz patches here:
    http://packages.debian.org/sid/linux-image-openvz-686

    Would these debs work without weird issues?

  8. #18
    Join Date
    Apr 2006
    Location
    Montana
    Beans
    Hidden!
    Distro
    Kubuntu Development Release

    Re: How to : OpenVZ Ubuntu Host

    Quote Originally Posted by avel View Post
    Are there any news on an intrepid-friendly OpenVZ kernel?

    I see that Debian have a 2.6.26 kernel with openvz patches here:
    http://packages.debian.org/sid/linux-image-openvz-686

    Would these debs work without weird issues?
    I filed a "bug report" at Launchpad asking this question, no joy as of yet.

    I am hoping OpenVZ will be supported in Ubuntu moving forward.
    There are two mistakes one can make along the road to truth...not going all the way, and not starting.
    --Prince Gautama Siddharta

    #ubuntuforums web interface

  9. #19
    Join Date
    Nov 2007
    Location
    Bucharest
    Beans
    3
    Distro
    Ubuntu 6.06 Dapper

    Re: How to : OpenVZ Ubuntu Host

    Hello, I've followed all the steps and now I have encountered a problem: my first kernel is: kernel /boot/vmlinuz-2.6.27-11-generic root=UUID=33955edc-fec5-404b-86fe-752e43531ca1 ro quiet splash and boots ok.
    I've tried setting the default kernel to:
    kernel /boot/vmlinuz-2.6.18-14-ovz-686 root=UUID=33955edc-fec5-404b-86fe-752e43531ca1 ro quiet splash. When this kernel boots, I get the ubuntu image, and then it stops loading, redirects me to /bin/sh with the following error: /dev/disk/by-uuid/33955edc-fec5-404b-86fe-752e43531ca1 does not exist. Dropping to a shell.
    Now, I've checked /dev/disk/by-uuid/33955edc-fec5-404b-86fe-752e43531ca1 (which is the same for both kernels), and it points to /dev/sda1, which is my primary hdd, so, theoretically, it should boot.
    My hardware is a Fujitsu Siemens laptop, with a SATA harddrive (might this be the problem?), and the OS is Kubuntu 8.10.
    Could you please tell me if I'm doing something wrong?

  10. #20
    Join Date
    Apr 2006
    Location
    Montana
    Beans
    Hidden!
    Distro
    Kubuntu Development Release

    Re: How to : OpenVZ Ubuntu Host

    My guess is that the openvz kernel does not have the drivers for your hard drive.

    You could try changing the kernel line to

    root=/dev/sda1
    There are two mistakes one can make along the road to truth...not going all the way, and not starting.
    --Prince Gautama Siddharta

    #ubuntuforums web interface

Page 2 of 4 FirstFirst 1234 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •