Jump to content
XPEnology Community

whuang

Rookie
  • Posts

    2
  • Joined

  • Last visited

Posts posted by whuang

  1. 2 hours ago, uxora-com said:


    As I did reply to you already in the article, for me, it works on several machine without getting this issue.

    This error may come from your Docker/Host machine configuration.

    However, the following command seems to be the one throwing that error:

    
    # Hack for guest VMs complaining about "bad udp checksums in 5 packets"
    $ iptables -A POSTROUTING -t mangle -p udp --dport bootpc -j CHECKSUM --checksum-fill


    You can try to test/debug by running a bash prompt with "-it --entrypoint /bin/bash"  as follow:

    
    docker run --privileged --cap-add=NET_ADMIN \
         --device=/dev/net/tun --device=/dev/kvm \
         -e CPU="qemu64" \
         -e THREADS=1 \
         -e RAM=512 \
         -e DISK_SIZE="8G 10G" \
         -e DISK_PATH="/image" \
         -e BOOTLOADER_URL="http://192.168.1.10/synoboot_104b_ds918plus_virtio_9p.img" \
         -e BOOTLOADER_AS_USB="Y" \
         -e VM_ENABLE_VIRTIO="Y" \
         -it --entrypoint /bin/bash \
         uxora/xpenology

     

    Try to test and see why the faulty "iptables" command does not work.

    Or edit "/usr/bin/vm-startup" script as you please (maybe like removing faulty cmd)
    Then run that script to launch xpenology kvm.

     

    Let me know if you find something... like this I may change the script to be more compatible.

    HTH

     

    Hi, HTH

     

    Thank you for the quick reply.

     

    After adding "-it --entrypoint /bin/bash" that you suggested, when running docker/xpenology, it does not show "iptables: No chain/target/match by that name." any more.

     

    I don't find the  "/usr/bin/vm-startup" script in my system.  I wonder if you could kindly show me an example how to incorporate what you suggested in that script.

     

    I really appreciate your advise/help.

     

    Regards,

    Wade

  2. Hi, everyone

     

    Got following error when running docker/xpenology.  Any thoughts?  Any help will be much appreciated!

     

    docker run --privileged --cap-add=NET_ADMIN \
    >     --device=/dev/net/tun --device=/dev/kvm \
    >     -e CPU="qemu64" \
    >     -e THREADS=1 \
    >     -e RAM=512 \
    >     -e DISK_SIZE="8G 10G" \
    >     -e DISK_PATH="/image" \
    >     -e BOOTLOADER_URL="http://192.168.1.10/synoboot_104b_ds918plus_virtio_9p.img" \
    >     -e BOOTLOADER_AS_USB="Y" \
    >     -e VM_ENABLE_VIRTIO="Y" \
    >     uxora/xpenology
    INFO: Start downloading bootloader from URL ...

         0K ........ ........ ........ ........ 64%  117M 0s
     32768K ........ ........ ..               100% 82.7M=0.5s
    INFO: Bootloader has been successfully downloaded from URL.
    INFO: /image/bootloader.raw file size seems valid for synoboot.
    INFO: Bootloader has been converted to qcow2
    INFO: No Initial Disk found, creating disk /image/vm-disk-1.qcow2
    Formatting '/image/vm-disk-1.qcow2', fmt=qcow2 size=8589934592 encryption=off cluster_size=65536 lazy_refcounts=off refcount_bits=16
    INFO: No Initial Disk found, creating disk /image/vm-disk-2.qcow2
    Formatting '/image/vm-disk-2.qcow2', fmt=qcow2 size=10737418240 encryption=off cluster_size=65536 lazy_refcounts=off refcount_bits=16
    INFO: KVM acceleration enabled
    INFO: Configuring network ...
    net.ipv4.ip_forward = 1
    INFO: DHCP configured to serve IP 20.20.20.21/24 via dockerbridge
    iptables: No chain/target/match by that name.
     

×
×
  • Create New...