March 23, 201412 yr Hi guys, I am trying to follow ironicbadger´s ArchVM guide, but since I am new to linux i guess i might be missing something. I will try to explain with all details what steps i follwed. Pls, don´t get angry with me if write anything that makes no sense . After installing Unraid 6beta3 I followed the steps in video 1, but then I realized the free license did not allow me for a cache disk. I already created the 2 shares: cache_only, data (but both using the same disk1). Of course -after typing cd /mnt and ls- there was no cache directory. I ordered a plus license, and when arrived I started again at creating the cache only share. First thing I realized was that i got 2 users showing up (user and user0), which was not in ironicbadger´s guide. I attach my setup, pls let me know if there is something wrong in it. Tower2 login: root Password: Linux 3.10.24p-unRAID. Last login: Thu Mar 6 13:44:48 +0000 2014 on /dev/pts/0 from 192.168.0.101. root@Tower2:~# ls mdcmd* powerdown@ samba@ root@Tower2:~# cd /mnt root@Tower2:/mnt# ls cache/ disk1/ disk2/ user/ user0/ root@Tower2:/mnt# cd user root@Tower2:/mnt/user# ls ArchVM/ ArchVM_v4.zip cache_only/ data/ root@Tower2:/mnt/user# cd /mnt/user0 root@Tower2:/mnt/user0# ls data/ root@Tower2:/mnt/user0# cd /mnt/disk1 root@Tower2:/mnt/disk1# ls root@Tower2:/mnt/disk1# cd /mnt/disk2 root@Tower2:/mnt/disk2# ls data/ root@Tower2:/mnt/disk2# cd /mnt/cache root@Tower2:/mnt/cache# ls ArchVM/ ArchVM_v4.zip cache_only/ root@Tower2:/mnt/cache# I followed all instructions untill I had to start the ArchVM. And I could not make it: root@Tower2:/mnt/disk2# cd /mnt/cache root@Tower2:/mnt/cache# ls ArchVM/ ArchVM_v4.zip cache_only/ root@Tower2:/mnt/cache# cd ArchVM root@Tower2:/mnt/cache/ArchVM# xl create arch.cfg -c Parsing config from arch.cfg Using <class 'grub.GrubConf.Grub2ConfigFile'> to parse /boot/grub/grub.cfg WARNING:root:Unknown image directive if WARNING:root:Unknown image directive else WARNING:root:Unknown image directive fi pyGRUB version 0.6 lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk x Arch GNU/Linux, with Linux core repo kernel' --class arch --class gnu-li nux --class gnu --class os $menuentry_id_option 'gnulinux-core repo kernel -true-93ec2c22-36c1-487c-a888-adde602a16fe x x x x x x x x x x x mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj Use the ^ and v keys to select which entry is highlighted. Press enter to boot the selected OS, 'e' to edit the commands before booting, 'a' to modify the kernel arguments before booting, or 'c' for a command line. libxl: notice: libxl_numa.c:491:libxl__get_numa_candidate: NUMA placement failed, performance might be affected xc: error: panic: xc_dom_boot.c:160: xc_dom_boot_mem_init: can't allocate low memory for domain: Out of memory libxl: error: libxl_dom.c:392:libxl__build_pv: xc_dom_boot_mem_init failed: Device or resource busy libxl: error: libxl_create.c:900:domcreate_rebuild_done: cannot (re-)build domain: -3 root@Tower2:/mnt/cache/ArchVM# and this is the arch.cfg config: # Created for the unRaid community by IronicBadger. # Last updated 16/04/2014. Enjoy! name = "archVM" # change me as required bootloader = "pygrub" memory = 2048 # update me to 4096 if using sabnzbd vcpus = '2' # update me to no of CPUs allocated disk = [ 'phy:/mnt/cache/ArchVM/arch.img,xvda,w', # 'phy:/mnt/data/Software/data.img,xvdc,w' ] # replace xx:xx:xx with random a1:b2:c3 mac address vif = [ 'mac=f4:6d:04:xx:xx:xx,bridge=br0' ] My sys log: . [Also, what are the steps to do a new clean install/reset of my unraid]SOLVED. Rgds.
March 23, 201412 yr Luca, user0 is only there as you have a cache drive now, which is used by the mover process, you can safely ignore this. I put my ArchVM folder inside the cache_only share I would move your ArchVM to this share Then change your config file to be # Created for the unRaid community by IronicBadger. # Last updated 16/04/2014. Enjoy! name = "archVM" # change me as required bootloader = "pygrub" memory = 2048 # update me to 4096 if using sabnzbd vcpus = '2' # update me to no of CPUs allocated disk = [ 'phy:/mnt/user/cache_only/ArchVM/arch.img,xvda,w', # 'phy:/mnt/data/Software/data.img,xvdc,w' ] # replace xx:xx:xx with random a1:b2:c3 mac address vif = [ 'mac=f4:6d:04:xx:xx:xx,bridge=br0' ] Also check your network settings in the Unraid GUI and confirm your Bridge is br0 and not xenbr0, if it is xenbr0 then change the bridge to be xenbr0 also in that configuration. I would also recommend you set a static mac address to keep your IP static going forward.
March 23, 201412 yr Author Hi, I followed your suggestions and still this message (I had br0 and a fixed IP): root@Tower2:/mnt/cache/cache_only/ArchVM# xl create arch.cfg -c Parsing config from arch.cfg Using <class 'grub.GrubConf.Grub2ConfigFile'> to parse /boot/grub/grub.cfg WARNING:root:Unknown image directive if WARNING:root:Unknown image directive else WARNING:root:Unknown image directive fi pyGRUB version 0.6 lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk x Arch GNU/Linux, with Linux core repo kernel' --class arch --class gnu-li nux --class gnu --class os $menuentry_id_option 'gnulinux-core repo kernel -true-93ec2c22-36c1-487c-a888-adde602a16fe x x x x x x x x x x x mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj Use the ^ and v keys to select which entry is highlighted. Press enter to boot the selected OS, 'e' to edit the commands before booting, 'a' to modify the kernel arguments before booting, or 'c' for a command line. libxl: notice: libxl_numa.c:491:libxl__get_numa_candidate: NUMA placement failed, performance might be affected xc: error: panic: xc_dom_boot.c:160: xc_dom_boot_mem_init: can't allocate low memory for domain: Out of memory libxl: error: libxl_dom.c:392:libxl__build_pv: xc_dom_boot_mem_init failed: Device or resource busy libxl: error: libxl_create.c:900:domcreate_rebuild_done: cannot (re-)build domain: -3 root@Tower2:/mnroot@Tower2:/mnt/cache/cache_only/ArchVM# I just "reset" the array and now it looks like this: Tower2 login: root Password: Linux 3.10.24p-unRAID. Last login: Thu Mar 6 20:35:58 +0000 2014 on /dev/pts/0 from 192.168.0.101. root@Tower2:~# cd root@Tower2:~# ls mdcmd* powerdown@ samba@ root@Tower2:~# cd /mnt root@Tower2:/mnt# ls cache/ disk1/ user/ user0/ root@Tower2:/mnt# cd cache root@Tower2:/mnt/cache# ls cache_only/ root@Tower2:/mnt/cache# cd cache_only root@Tower2:/mnt/cache/cache_only# ls ArchVM/ ArchVM_v4.zip data.img root@Tower2:/mnt/cache/cache_only# Any suggestion?
March 23, 201412 yr How did you create your configuration file with mcedit? Can you put your current configuration file and Archvm directory listing here. Also just checking you did set unraid to boot with xen
March 24, 201412 yr Author Hi again, Yes, I did set unraid to boot with xen. My config file: # Created for the unRaid community by IronicBadger. # Last updated 16/04/2014. Enjoy! name = "archVM" # change me as required bootloader = "pygrub" memory = 2048 # update me to 4096 if using sabnzbd vcpus = '2' # update me to no of CPUs allocated disk = [ 'phy:/mnt/user/cache_only/ArchVM/arch.img,xvda,w', # 'phy:/mnt/data/Software/data.img,xvdb,w' ] # replace xx:xx:xx with random a1:b2:c3 mac address vif = [ 'mac=f4:6d:04:xx:xx:xx,bridge=br0' ] My cache_only directory: Index of /mnt/user/cache_only Name Size Location ArchVM cache ArchVM_v4.zip 548Mb cache data.img 64.4GB cache My ArchVM directory: arch.cfg 459 B cache arch.img 15 GB cache My Data directory (is empty): Index of /mnt/user/data I created the "data.img 64.4GB cache" in the cache only directory trying to check if this helps with no success. What does actually "'phy:/mnt/data/Software/data.img,xvdb,w'" stand for? Rgds.
March 25, 201412 yr Luca, I have attached my cfg file for you try this please. "I created the "data.img 64.4GB cache" in the cache only directory trying to check if this helps with no success. What does actually "'phy:/mnt/data/Software/data.img,xvdb,w'" stand for?" Your first Disk is xvda the second disk which is the data.img file you created would be xvdb, another disk would them be xvdc on so on If you create the cfg file in say windows notepad and then copied it over to unraid when you open it up in mcedit on unraid you will see the carriage return at the end of each line, this is bad for Xen to know what to do with the file. arch.cfg
March 25, 201412 yr Author Hi, I used notepad++ so it should not be an issue to edit .cfg with it. This is what I get when using your .cfg: root@Tower2:/mnt/cache/cache_only# xl create ArchVM/arch.cfg -c Parsing config from ArchVM/arch.cfg ArchVM/arch.cfg:8: config parsing error near `<------>]': lexical error ArchVM/arch.cfg:9: config parsing error near `vif': syntax error, unexpected IDE NT, expecting ']' Failed to parse config: Invalid argument root@Tower2:/mnt/cache/cache_only# I modified your .cfg to solve this error: name = "ArchVM" bootloader = "pygrub" memory = 2048 vcpus = '2' disk = [ 'phy:/mnt/user/cache_only/ArchVM/arch.img,xvda,w', # 'phy:/mnt/user/cache_only/ArchVM/data.img,xvdb,w' ] vif = [ 'mac=f4:6d:04:xx:xx:xx,bridge=br0' ] ...but still get this error (it´s the same error as yesterday): root@Tower2:/mnt/cache/cache_only# xl create ArchVM/arch.cfg -c Parsing config from ArchVM/arch.cfg Using <class 'grub.GrubConf.Grub2ConfigFile'> to parse /boot/grub/grub.cfg WARNING:root:Unknown image directive if WARNING:root:Unknown image directive else WARNING:root:Unknown image directive fi pyGRUB version 0.6 lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk x Arch GNU/Linux, with Linux core repo kernel' --class arch --class gnu-li nux --class gnu --class os $menuentry_id_option 'gnulinux-core repo kernel -true-93ec2c22-36c1-487c-a888-adde602a16fe x x x x x x x x x x x mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj Use the ^ and v keys to select which entry is highlighted. Press enter to boot the selected OS, 'e' to edit the commands before booting, 'a' to modify the kernel arguments before booting, or 'c' for a command line. libxl: notice: libxl_numa.c:491:libxl__get_numa_candidate: NUMA placement failed, performance might be affected xc: error: panic: xc_dom_boot.c:160: xc_dom_boot_mem_init: can't allocate low memory for domain: Out of memory libxl: error: libxl_dom.c:392:libxl__build_pv: xc_dom_boot_mem_init failed: Device or resource busy libxl: error: libxl_create.c:900:domcreate_rebuild_done: cannot (re-)build domain: -3 root@Tower2:/mnt/cacroot@Tower2:/mnt/cache/cache_only# Any other ideas I can try? Rgds.
March 25, 201412 yr can you run a the following command xl list I want to see what it shows for Domain-0 and also what CPU and memory are you running.
March 25, 201412 yr Author Yep...here it is: root@Tower2:/mnt/cache/cache_only/ArchVM# xl list Name ID Mem VCPUs State Time(s) Domain-0 0 2048 2 r----- 77.3 root@Tower2:/mnt/cache/cache_only/ArchVM# And this is my cpu/chipset: AMD E-350. I know it is not powerfull at all but I thought it should be enough to run Arch linux...maybe I was wrong. Let me know if you need my syslog too. Rgds
March 26, 201412 yr In theory the E350 should be able to kick up 1 virtual machine, It doesn't support IOMMU, but thats ok with how this virtual guest is setup. In your Bios do you have SVM enabled?
March 26, 201412 yr I'm going to guess there may have been a problem with the download of IB's file. It might be easier to download it again and start over from scratch. I don't remember if IB included a checksum of that file. BTW, how much memory do you have in your unRAID server? There was a suggestion to allocate all memory for DOM0 to use. To do that you have to modify the syslinux file for DOM0. I'm pretty sure that's still valid.
March 26, 201412 yr Author Yes, SVM is enabled. I modified the syslinux.cfg file and assigned 3gb ram to dom0 (before it had 2Gb assigned) and run "xl top": Tower2 login: root Password: Linux 3.10.24p-unRAID. root@Tower2:~# xl top xentop - 15:06:55 Xen 4.3.1 1 domains: 1 running, 0 blocked, 0 paused, 0 crashed, 0 dying, 0 shutdown Mem: 3779752k total, 3193712k used, 586040k free CPUs: 2 @ 1599MHz NAME STATE CPU(sec) CPU(%) MEM(k) MEM(%) MAXMEM(k) MAXMEM(%) VCPUS NETS NETTX(k) NETRX(k) VBDS VBD_OO VBD_RD VBD_WR VBD_RSECT VBD_WSECT SSID Domain-0 -----r 31 0.8 3145728 83.2 no limit n/a 2 0 0 0 0 0 0 0 0 0 0 ...still not working..same error as yesterday. I also try to assign all the available physical ram (4gb) and unraid/xen refused to boot .. due to not enough memory. I will try later to start over from scratch.
March 26, 201412 yr Author I got it. It was exactly the other way around..... 1) I edited syslinux.cfg and assigned only 1gb ram 2) I started unraid/xen and voilá: xentop - 15:25:18 Xen 4.3.1 2 domains: 1 running, 1 blocked, 0 paused, 0 crashed, 0 dying, 0 shutdown Mem: 3779752k total, 3193912k used, 585840k free CPUs: 2 @ 1600MHz NAME STATE CPU(sec) CPU(%) MEM(k) MEM(%) MAXMEM(k) MAXMEM(%) VCPUS NETS NETTX(k) NETRX(k) VBDS VBD_OO VBD_RD VBD_WR VBD_RSECT VBD_WSECT SSID archVM --b--- 4 0.1 2097152 55.5 2098176 55.5 2 1 20 2 0 0 0 0 0 0 0 Domain-0 -----r 40 0.9 1048576 27.7 no limit n/a 2 0 0 0 0 0 0 0 0 0 0 My previous config/setup ran out of memory (tip: get lots of ram )! Thx for help guys!
March 26, 201412 yr I got it. It was exactly the other way around..... 1) I edited syslinux.cfg and assigned only 1gb ram 2) I started unraid/xen and voilá......... I'm glad you got it working. In my case I have all my memory allocated to DOM0 with 1 CPU. The idea being you don't want to let DOM0 (+unRAID server) run out of memory; the VM with their apps can poop out and be restarted. Interesting!
March 26, 201412 yr Author Hi again, I am logging into ArchVM and run "ip addr", but do not get ArchVM´s IP address. How can i give ArchVM a static IP? I just tried to find an answer on the forum with no luck. Arch Linux 3.13.6-1-ARCH (hvc0) IronicsArchVM_v4 login: root Password: Last login: Wed Mar 26 21:36:27 on hvc0 + OS: Arch Linux x86_64 # Hostname: IronicsArchVM_v4 ### Kernel Release: 3.13.6-1-ARCH ##### Uptime: 0:00 ###### WM: None ; #####; DE: None +##.##### Packages: 156 +########## RAM: 65 MB / 1997 MB #############; Processor Type: AMD E-350 Processor ###############+ $EDITOR: nano ####### ####### Root: 809M / 14G (5%) (ext4) .######; ;###;`". .#######; ;#####. #########. .########` ######' '###### ;#### ####; ##' '## #' `# [root@IronicsArchVM_v4 ~]# ip addr 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether f4:6d:04:72:47:39 brd ff:ff:ff:ff:ff:ff inet6 fe80::f66d:4ff:fe72:4739/64 scope link valid_lft forever preferred_lft forever
March 27, 201412 yr It takes about a minute or so to get networking going. It will show IP address then as DHCP is turned on. Check the Arch Wiki on setting manual IP address. https://wiki.archlinux.org/index.php/Network_configuration#Static_IP_address I suggest you set a DHCP reservation in your router and leave DCHP on in the VM.
March 27, 201412 yr Author Hi guys, I am going mad trying to set up the ip for my ArchVM (and reading the Arch wiki too). My ArchVM is no getting an IP and is showing the same MAC as Dom-0: [root@IronicsArchVM_v4 netctl]# ip add 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group defaul t link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP gr oup default qlen 1000 link/ether f4:6d:04:72:47:39 brd ff:ff:ff:ff:ff:ff inet6 fe80::f66d:4ff:fe72:4739/64 scope link valid_lft forever preferred_lft forever Where does actually Arch store the network config file? Is it /etc/ethernet-static (which I already modified to this): Description='A basic static ethernet connection' Interface=eth0 Connection=ethernet IP=static Address=('192.168.0.111/24') #Routes=('192.168.0.111/24 via 192.168.0.110') Gateway='192.168.0.1' DNS=('192.168.0.1') ## For IPv6 autoconfiguration #IP6=stateless ## For IPv6 static address configuration #IP6=static #Address6=('1234:5678:9abc:def::1/64' '1234:3456::123/96') #Routes6=('abcd::1234') #Gateway6='1234:0:123::abcd' or /etc/netctl/profile (which I also modified): Description='A basic static ethernet connection' Interface=eth0 Connection=ethernet IP=static Address=('192.168.0.111/24') Gateway='192.168.0.1' DNS=('192.168.0.1') What am I missing? I tried to follow ironbadgers instructions too with no luck: Set a static IP address in Arch 1. Find out your LAN information such as your Gateway and DNS settings. 2. Copy the template into the right directory the load up nano to edit it Code: [select] cd /etc/netctl cp examples/ethernet-static ethernet nano ethernet 3. You will have a file with many lines, you only need to edit Address, Gateway and DNS. For example: Code: [select] Address=('192.168.1.23/24') <--- only one IP address here Gateway='192.168.1.1' <--- usually your router, ditto for DNS DNS=('192.168.1.1') 3. Press Ctrl + X to exit and save the file with nano. 4. Enable the profile you've just created Code: [select] netctl enable ethernet <--- enables connection autostart at boot netctl start ethernet <--- or reboot here, will have the same effect Another doubt is if it is necessary that my ArchVM has a different MAC than my Dom-0? My router does not allow me to assign 2 different Ip´s with the same MAC. Hope to hear some clues. Rgds.
March 27, 201412 yr Going back to your first post, it looks like you never fixed the MAC address in the arch.cfg file. and this is the arch.cfg config: # Created for the unRaid community by IronicBadger. # Last updated 16/04/2014. Enjoy! name = "archVM" # change me as required bootloader = "pygrub" memory = 2048 # update me to 4096 if using sabnzbd vcpus = '2' # update me to no of CPUs allocated disk = [ 'phy:/mnt/cache/ArchVM/arch.img,xvda,w', # 'phy:/mnt/data/Software/data.img,xvdc,w' ] # replace xx:xx:xx with random a1:b2:c3 mac address vif = [ 'mac=f4:6d:04:xx:xx:xx,bridge=br0' ] Not sure if that is it, I'm not running Arch or any VM's, I've just been browsing the topic for my next build.
March 28, 201412 yr Author Hi, Arch.cfg is ok: name = "archVM" bootloader = "pygrub" memory = 2048 vcpus = '2' disk = [ 'phy:/mnt/user/cache_only/ArchVM/arch.img,xvda,w', # 'phy:/mnt/user/cache_only/ArchVM/data.img,xvdb,w' ] vif = [ 'mac=f4:6d:04:72:47:39,bridge=br0' ] Any little help to keep on going? Rgds
March 28, 201412 yr Author Hi again, Let me tell you what I have achieved. My start point is: [root@IronicsArchVM_v4 ~]# ip link 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000 link/ether f4:6d:04:72:47:39 brd ff:ff:ff:ff:ff:ff [root@IronicsArchVM_v4 ~]# ls /sys/class/net eth0 lo [root@IronicsArchVM_v4 ~]# ip addr show dev eth0 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether f4:6d:04:72:47:39 brd ff:ff:ff:ff:ff:ff inet6 fe80::f66d:4ff:fe72:4739/64 scope link valid_lft forever preferred_lft forever This is what I get: [root@IronicsArchVM_v4 etc]# ping -c 3 www.google.com ping: unknown host www.google.com [root@IronicsArchVM_v4 etc]# ping -c 3 192.168.0.1 PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data. From 192.168.0.111 icmp_seq=1 Destination Host Unreachable From 192.168.0.111 icmp_seq=2 Destination Host Unreachable From 192.168.0.111 icmp_seq=3 Destination Host Unreachable --- 192.168.0.1 ping statistics --- 3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 1999ms pipe 3 So I decided to change my IP (to assign archVM the same IP as reserved in my router for archVM (which is 192.168.0.111): [root@IronicsArchVM_v4 etc]# ip addr add 192.168.0.111/24 dev eth0 [root@IronicsArchVM_v4 etc]# ip route add default via 192.168.0.1 But I still get the same errors as before! So I try to change the MAC too: root@IronicsArchVM_v4 etc]# ip link show eth0 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000 link/ether f4:6d:04:72:47:39 brd ff:ff:ff:ff:ff:ff [root@IronicsArchVM_v4 etc]# ip link set dev eth0 down [root@IronicsArchVM_v4 etc]# ip link set dev eth0 address 00:16:3e:01:45:78 [root@IronicsArchVM_v4 etc]# ip link set dev eth0 up And this is what I get: [root@IronicsArchVM_v4 etc]# ping -c 3 192.168.0.1 PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data. 64 bytes from 192.168.0.1: icmp_seq=1 ttl=64 time=1.90 ms 64 bytes from 192.168.0.1: icmp_seq=2 ttl=64 time=1.25 ms 64 bytes from 192.168.0.1: icmp_seq=3 ttl=64 time=1.13 ms --- 192.168.0.1 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2003ms rtt min/avg/max/mdev = 1.130/1.429/1.905/0.340 ms BUT pinging to www.google.com is still not working. So I decided to reboot, maybe this would help ... BUT when I logged my archVM is showing the same config as before: [root@IronicsArchVM_v4 ~]# ip link 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000 link/ether f4:6d:04:72:47:39 brd ff:ff:ff:ff:ff:ff ...the old MAC and no static IP. Pls, anyone can tell me how to make both be static after reboot?
March 28, 201412 yr Set the full MAC address in the cfg file. Then either set this as a static IP on your router with the MAC address or do the following ip addr add 192.168.0.111/24 broadcast 192.168.0.255 dev eth0 ip route add default via 192.168.0.1 Add DNS servers into the /etc/resolv.conf file either use if your router is 192.168.0.1 nameserver 192.168.0.1 Or use the google DNS servers nameserver 8.8.8.8 nameserver 4.4.4.4 If you type just ip route you will see the setup [root@ArchApplianceVM_v3 examples]# ip route default via 192.168.0.1 dev eth0 metric 202 192.168.0.0/24 dev eth0 proto kernel scope link src 192.168.0.130 metric 202
March 29, 201412 yr Author Hi, I already set the full MAC address (corresponding to Unraid´s Dom-0 >>> vif = [ 'mac=f4:6d:04:72:47:39,bridge=br0' ]) in archVM´s cfg file. Or do you mean I have to put in archVM´s cfg file the new MAC address (00:16:3e:01:45:78) I want archVM to use? Once I boot in unraid, Unraid has at eth0 network adapter > ip: 192.168.0.110 and this mac=f4:6d:04:72:47:39. Once I boot in archVM, it has at eth0 network adapter > ip: no IP (I want it to be 192.168.0.111) and same mac as Unraid (I want it to be 00:16:3e:01:45:78). I hope doing so will allow the archVM connect to internet. Is this true?
March 29, 201412 yr Not this Hi, I already set the full MAC address (corresponding to Unraid´s Dom-0 >>> vif = [ 'mac=f4:6d:04:72:47:39,bridge=br0' ]) in archVM´s cfg file. This Or do you mean I have to put in archVM´s cfg file the new MAC address (00:16:3e:01:45:78) I want archVM to use? It cannot have the same mac address as unRAID. Once I boot in unraid, Unraid has at eth0 network adapter > ip: 192.168.0.110 and this mac=f4:6d:04:72:47:39. The virtual machine has a virtual network adapter, which still needs a unique MAC Once I boot in archVM, it has at eth0 network adapter > ip: no IP (I want it to be 192.168.0.111) and same mac as Unraid (I want it to be 00:16:3e:01:45:78). I hope doing so will allow the archVM connect to internet. Is this true? It will be able to connect to the internet just fine once it has been given an IP.
March 29, 201412 yr Author Hi, I followed step-by-step this archwiki guide to allow for a fixed network config after reboot: Persistent configuration on boot using systemd and udev rules First create a configuration file for the systemd service, replace interface with the proper network interface name: /etc/conf.d/network@interface address=192.168.0.15 netmask=24 broadcast=192.168.0.255 gateway=192.168.0.1 Create a systemd unit file: /etc/systemd/system/[email protected] [unit] Description=Network connectivity (%i) Wants=network.target Before=network.target BindsTo=sys-subsystem-net-devices-%i.device After=sys-subsystem-net-devices-%i.device [service] Type=oneshot RemainAfterExit=yes EnvironmentFile=/etc/conf.d/network@%i ExecStart=/usr/bin/ip link set dev %i up ExecStart=/usr/bin/ip addr add ${address}/${netmask} broadcast ${broadcast} dev %i ExecStart=/usr/bin/sh -c 'test -n ${gateway} && /usr/bin/ip route add default via ${gateway}' ExecStop=/usr/bin/ip addr flush dev %i ExecStop=/usr/bin/ip link set dev %i down [install] WantedBy=multi-user.target Enable the unit and start it, passing the name of the interface: # systemctl enable [email protected] # systemctl start [email protected] After doing that .. let me check if it works: [root@IronicsArchVM_v4 ~]# ip addr 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether 00:16:3e:01:45:78 brd ff:ff:ff:ff:ff:ff inet 192.168.0.111/24 brd 192.168.0.255 scope global eth0 valid_lft forever preferred_lft forever inet6 fe80::216:3eff:fe01:4578/64 scope link valid_lft forever preferred_lft forever As you can see, I managed to assign a static IP. Also MAC was fixed editing the arch.cfg file. Now I can ping my other pc´s in the network, the dns, the gateway, 8.8.8.8 BUT when i ping www.google.com it can´t reach it. When I am in Tower, i can ping www.google.com. But not in ArchVM. Any ideas? [root@IronicsArchVM_v4 system]# ip route default via 192.168.0.1 dev eth0 192.168.0.0/24 dev eth0 proto kernel scope link src 192.168.0.111 [root@IronicsArchVM_v4 system]# vs root@Tower2:/etc# ip route default via 192.168.0.1 dev br0 metric 1 127.0.0.0/8 dev lo scope link 192.168.0.0/24 dev br0 proto kernel scope link src 192.168.0.110 root@Tower2:/etc# Does it have to do with Tower being assigned to br0 and ArchVM to eth0?
March 29, 201412 yr can you ping 173.194.33.113 (www.google.com) if yes - you have a DNS problem - what does your /etc/resolv.conf look like? Myk
Archived
This topic is now archived and is closed to further replies.