Open the console connection<\/em>.<\/p>\n\n\n\nLog in normally with the user credentials for the server image before transferring it to the cloud. Once in, check the network settings with the following command.<\/p>\n\n\n\n
ip addr<\/pre>\n\n\n\nUpCloud hosts have three network interfaces in the default configuration, public IPv4, private IPv4 and public IPv6 addresses. You might see something similar to the example output below. The first interface eth0<\/em> might work but the other devices are not yet configured.<\/p>\n\n\n\n1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default\n link\/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00\n inet 127.0.0.1\/8 scope host lo\n valid_lft forever preferred_lft forever\n inet6 ::1\/128 scope host\n valid_lft forever preferred_lft forever\n2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000\n link\/ether 6e:d7:1b:bf:18:29 brd ff:ff:ff:ff:ff:ff\n inet 83.136.248.62\/22 brd 83.136.251.255 scope global eth0\n valid_lft forever preferred_lft forever\n inet6 fe80::6cd7:1bff:febf:1829\/64 scope link\n valid_lft forever preferred_lft forever\n3: eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000\n link\/ether 6e:d7:1b:bf:e6:f2 brd ff:ff:ff:ff:ff:ff\n4: eth2: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000\n link\/ether 6e:d7:1b:bf:61:a8 brd ff:ff:ff:ff:ff:ff<\/pre>\n\n\n\nEdit your network configuration files to match the network interface names listed in the above output. For example, Ubuntu and other Debian-based systems use the command below to open the configuration file.<\/p>\n\n\n\n
sudo nano \/etc\/network\/interfaces<\/pre>\n\n\n\nAdd the following sections to the file. If the network interfaces were named differently, use those names instead of eth0<\/em>, eth1<\/em>, etc.<\/p>\n\n\n\nauto lo\niface lo inet loopback\n\nauto eth0\niface eth0 inet dhcp\n\nauto eth1\niface eth1 inet dhcp\n\nauto eth2\niface eth2 inet6 auto<\/pre>\n\n\n\nOn CentOS and other Red Hat variants, the network interfaces are configured in individual files. These files are stored in the \/etc\/sysconfig\/network-scripts\/ directory, check the file names with the command below.<\/p>\n\n\n\n
ls \/etc\/sysconfig\/network-scripts\/ | grep ifcfg-<\/pre>\n\n\n\nThen open the first interface file for editing, for example, ifcfg-eth0<\/em>.<\/p>\n\n\n\nsudo vi \/etc\/sysconfig\/network-scripts\/ifcfg-eth0<\/pre>\n\n\n\nThe file should read at least the following settings. In case, ONBOOT<\/em> is set to no<\/em>, change it to yes<\/em> and save the file.<\/p>\n\n\n\nDEVICE=eth0\nBOOTPROTO=dhcp\nONBOOT=yes<\/pre>\n\n\n\nYou may need to do the same operation to other network interfaces, or simply create new configuration files if your old system only had one or two interfaces.<\/p>\n\n\n\n
Afterwards, reboot the server and try logging in with SSH. If the network is working you can start using the new host as before with the added benefit of the freely scalable system resources and faster than SSD storage disks with MaxIOPS technology.<\/p>\n\n\n\n
Final steps<\/h2>\n\n\n\n
Congratulations, your own server image should now be up and running on a brand new cloud host. In case you have any further problems with the network, you can find additional help with troubleshooting the connectivity in the guide for network issues with the Linux host<\/a>.<\/p>\n\n\n\nIf you run into issues with booting from the new system image, you can always attach the old primary disk again and find the image files safely stored for another try without the need to wait for the image to upload again. Once you are confident that the new system is running properly, you can go to the Storage list in your UpCloud Control Panel<\/a> and delete the unnecessary storage device.<\/p>\n","protected":false},"featured_media":26821,"comment_status":"open","ping_status":"closed","template":"","community-category":[109,110],"class_list":["post-24388","tutorial","type-tutorial","status-publish","has-post-thumbnail","hentry","community-category-upcloud-services","community-category-storage"],"acf":[],"_links":{"self":[{"href":"https:\/\/studiogo.tech\/upcloudold\/wp-json\/wp\/v2\/tutorial\/24388","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/studiogo.tech\/upcloudold\/wp-json\/wp\/v2\/tutorial"}],"about":[{"href":"https:\/\/studiogo.tech\/upcloudold\/wp-json\/wp\/v2\/types\/tutorial"}],"replies":[{"embeddable":true,"href":"https:\/\/studiogo.tech\/upcloudold\/wp-json\/wp\/v2\/comments?post=24388"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/studiogo.tech\/upcloudold\/wp-json\/wp\/v2\/media\/26821"}],"wp:attachment":[{"href":"https:\/\/studiogo.tech\/upcloudold\/wp-json\/wp\/v2\/media?parent=24388"}],"wp:term":[{"taxonomy":"community-category","embeddable":true,"href":"https:\/\/studiogo.tech\/upcloudold\/wp-json\/wp\/v2\/community-category?post=24388"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}