OpenVZ Forum


Home » General » Support » About Clone VE
About Clone VE [message #35514] Wed, 01 April 2009 10:55 Go to next message
satimis is currently offline  satimis
Messages: 39
Registered: August 2008
Member
Hi folks,


OpenVZ
Host - Ubuntu 8.04 workstation
VE(existing guest) - 101

I'm prepared following;
http://wiki.openvz.org/Cloning_VE

to duplicate a new VE of 101 and name it "102"

I can't find following package on repo;

satimis@vz0:~$ apt-cache policy pushd
W: Unable to locate package pushd


satimis@vz0:~$ apt-cache search pushd
obexpushd - program for receiving files via Bluetooth


# vzctl stop 101
Unable to stop: VE is not running

The guest "VE" is NOT running.

# ls /etc/vz/conf/
0.conf    102.conf.destroyed    ve-vps.basic.conf-sample
101.conf  ve-light.conf-sample



Re: pushd /vz/private/$OLDVE; ......

the directories don't exist. Whether creating them?

Please advise.

TIA

B.R.
satimis
Re: About Clone VE [message #35519 is a reply to message #35514] Wed, 01 April 2009 16:28 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hello,

Quote:


I can't find following package on repo;


It's a bash built-in function.

Quote:


Re: pushd /vz/private/$OLDVE; ......

the directories don't exist. Whether creating them?


The first line of the wiki page:
Quote:


OLDVE=222 NEWVE=333



In your case OLDVE shoud be 101, NEWVE - 102.
Re: About Clone VE [message #35543 is a reply to message #35519] Thu, 02 April 2009 16:44 Go to previous message
satimis is currently offline  satimis
Messages: 39
Registered: August 2008
Member
Hi maratrus,


Thanks for your advice.


# ls -l /var/lib/vz/
total 20
drwxr-xr-x 2 root root 4096 2008-04-21 22:19 dump
drwxr-xr-x 2 root root 4096 2009-04-02 23:02 lock
drwxr-xr-x 3 root root 4096 2009-04-01 11:53 private
drwxr-xr-x 3 root root 4096 2009-04-01 11:53 root
drwxr-xr-x 3 root root 4096 2008-09-24 18:54 template


# ls -l /var/lib/vz/root
total 4
drwxr-xr-x 20 root root 4096 2008-09-24 21:32 101


# locate 101.conf
/etc/vz/conf/101.conf



Then I'll run;

# mkdir /var/lib/vz/root/102

# cp /etc/vz/conf/101.conf /etc/vz/conf/102.conf

# mkdir /var/lib/vz/private/102

# pushd /var/lib/vz/private/101; tar c --numeric-owner * | tar x --numeric-owner -C /var/lib/vz/private/102; popd


If I'm wrong, please correct me. Thanks


B.R.
satimis
Previous Topic: Question about memory usage in openVZ container
Next Topic: OpenVZ + ALT Linux Sisyphus (20081222) + WebVZ
Goto Forum:
  


Current Time: Sun Jul 28 22:20:29 GMT 2024

Total time taken to generate the page: 0.02771 seconds