{"id":3641,"date":"2025-05-27T14:35:27","date_gmt":"2025-05-27T18:35:27","guid":{"rendered":"https:\/\/increasec.com\/?p=3641"},"modified":"2025-10-20T13:36:11","modified_gmt":"2025-10-20T17:36:11","slug":"no-ip-after-importing-a-linux-vm-into-xcp-ng","status":"publish","type":"post","link":"https:\/\/increasec.com\/?p=3641","title":{"rendered":"No IP after importing a Linux VM into XCP-NG (SOLVED)"},"content":{"rendered":"\n<p><strong>make sure no vmware tools are installed<\/strong>:<br>sudo apt remove open-vm-tools<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Mount the vmtools CD\/ISO<\/strong>:<br>mkdir \/mnt\/cdrom<br>mount \/dev\/cdrom \/mnt\/cdrom<br>\/mnt\/cdrom\/Linux\/install.sh<br>shutdown -r<br> (eject the CD ISO)<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Ubuntu + Netplan naming problems:<\/strong><br>note the name of the network adapter is <strong>eth0 <\/strong>after importing into XCP.  confirm with below<br>ip a<\/p>\n\n\n\n<p><strong>Netplan still thinks it&#8217;s the old name<\/strong>:<br>sudo nano \/etc\/netplan\/00-installer-config.yaml<br>#this is the network config written by subsomething<br>network:<br> ethernets:<br>    <strong>ens160<\/strong>:<br>      dhcp:true<\/p>\n\n\n\n<p>your network adapter may be called something different than ens160, change that to eth0 or whatever it was called in the ip a listing above.   THIS IS CASE SENSITIVE   enx0 and enX0 are different.<\/p>\n\n\n\n<p>reset the networking with:<br>sudo netplan apply<\/p>\n\n\n\n<p>you should be able to ping 8.8.8.8 now.  <br>i rebooted as some demons were not running, likely dependent on networking.<\/p>\n\n\n\n<p>More info here <a href=\"https:\/\/xcp-ng.org\/forum\/topic\/8790\/import-of-ubuntu\/14\">https:\/\/xcp-ng.org\/forum\/topic\/8790\/import-of-ubuntu\/14<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>make sure no vmware tools are installed:sudo apt remove open-vm-tools Mount the vmtools CD\/ISO:mkdir \/mnt\/cdrommount \/dev\/cdrom \/mnt\/cdrom\/mnt\/cdrom\/Linux\/install.shshutdown -r (eject the CD ISO) Ubuntu + Netplan naming problems:note the name of&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3641","post","type-post","status-publish","format-standard","hentry","category-uncategorised"],"_links":{"self":[{"href":"https:\/\/increasec.com\/index.php?rest_route=\/wp\/v2\/posts\/3641","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/increasec.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/increasec.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/increasec.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/increasec.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3641"}],"version-history":[{"count":8,"href":"https:\/\/increasec.com\/index.php?rest_route=\/wp\/v2\/posts\/3641\/revisions"}],"predecessor-version":[{"id":3935,"href":"https:\/\/increasec.com\/index.php?rest_route=\/wp\/v2\/posts\/3641\/revisions\/3935"}],"wp:attachment":[{"href":"https:\/\/increasec.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3641"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/increasec.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3641"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/increasec.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3641"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}