Editing Migration from Linux-VServer to OpenVZ

Jump to: navigation, search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 216: Line 216:
 
Additionally, Ubuntu based vservers have the udev package installed which prevents access to the console in openvz. This error message is an example of the problem:
 
Additionally, Ubuntu based vservers have the udev package installed which prevents access to the console in openvz. This error message is an example of the problem:
  
# vzctl enter 345
+
<code>
enter into CT 345 failed
+
# vzctl enter 101
Unable to open pty: No such file or directory
+
enter into CT 101 failed
 +
Unable to open pty: No such file or directory
 +
</code>
  
 
The fix is to remove the udev package from the guest:
 
The fix is to remove the udev package from the guest:
  
 
+
<code>
# vzctl exec 345 'dpkg --force-depends --purge udev'
+
# vzctl exec 101 'dpkg --force-depends --purge udev'
(Reading database ... dpkg: udev: dependency problems, but removing anyway as you request:
+
(Reading database ... dpkg: udev: dependency problems, but removing anyway as you request:
  initramfs-tools depends on udev (>= 117-5).
+
initramfs-tools depends on udev (>= 117-5).
15227 files and directories currently installed.)
+
15227 files and directories currently installed.)
Removing udev ...
+
Removing udev ...
Purging configuration files for udev ...
+
Purging configuration files for udev ...
dpkg - warning: while removing udev, directory `/lib/udev/devices/net' not empty so not removed.
+
dpkg - warning: while removing udev, directory `/lib/udev/devices/net' not empty so not removed.
dpkg - warning: while removing udev, directory `/lib/udev/devices' not empty so not removed.
+
dpkg - warning: while removing udev, directory `/lib/udev/devices' not empty so not removed.
 
+
</code>
  
 
Now restart the container, you should now be able to use the console.
 
Now restart the container, you should now be able to use the console.
  
 +
<code>
 +
# vzctl restart 101
 +
Restarting container
 +
...
 +
<SNIP>
 +
...
 +
Container start in progress...
  
# vzctl restart 345
+
# vzctl enter 101
Restarting container
+
entered into CT 101
...
+
root@test:/#
  <SNIP>
+
</code>
...
 
Container start in progress...
 
 
 
# vzctl enter 345
 
entered into CT 345
 
root@test:/#
 
  
 
=== /proc ===
 
=== /proc ===

Please note that all contributions to OpenVZ Virtuozzo Containers Wiki may be edited, altered, or removed by other contributors. If you don't want your writing to be edited mercilessly, then don't submit it here.
If you are going to add external links to an article, read the External links policy first!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)

Template used on this page: