i don't have any log but the bash script doesn't work...
I use virl 1.2.83 with cumulusVX 3.3.1. For import the image i have used your script.
Any idea what happen ?
Thanks
Hello,
Thanks a lot for your work !
I have a little problem, when i try to add configuration in VMMaestro in a CumulusVX node, nothing happens after booting of instance.
By Example, when i use :
#!/bin/bash
useradd -m cisco -s /bin/bash
echo "cisco:cisco" | chpasswd
addgroup cisco sudo
i don't have any log but the bash script doesn't work...
I use virl 1.2.83 with cumulusVX 3.3.1. For import the image i have used your script.
Any idea what happen ?
Thanks
other thing, when i attempt to create image i have this error message :
*Injecting changes to use serial console and startup script to get switch config...<br>
sed: can't read cumulusvx-boot-20170602211137/grub/grub.cfg: No such file or directory /!\ <br>
Unmounting cumulusvx-boot-20170602211137...<br>
Unmounting cumulusvx-root-20170602211137...<br>
loop deleted : /dev/loop1<br>
i don't understand well this part of the script : <br>
mkdir /virl-config<br>
mount /dev/sdb1 /virl-config<br>
chmod +x /virl-config/cumulusvx.sh<br>
/virl-config/cumulusvx.sh >/var/log/virl-startup.log<br>
What is doing cumulusvx.sh ?
I have found my error, it's about subtype "/cumumlusvx.sh" (no cloud-init)
For the error about grub.cfg not fund, solution :
sed -i.bak -e s/"console=tty0 quiet"/"console=tty0"/g cumulusvx-root-$TIMESTAMP/boot/grub/grub.cfg
I have found my error, it's about subtype "/cumumlusvx.sh" (no cloud-init)<br>
For the error about grub.cfg not fund, solution :<br>
sed -i.bak -e s/"console=tty0 quiet"/"console=tty0"/g cumulusvx-root-$TIMESTAMP/boot/grub/grub.cfg
Yes! In the subtype "config_file" is the location where the config from VMmaestro is stored. Due to "config_disk_type": "disk", this is stored as a file on a disk that is mounted (/dev/sdb1) in my script. The contents of the config file are then run. This is also the case for the default subtype and minimal config that is supplied with the script:
Thanks for the hint regarding grub in cumulusvx >= 3.x! Actually, not only the file position has changed, also the content is different. To see the kernel boot log in the serial console, following line is correct:
sed -i.bak -e s/"${extra_cmdline} quiet"/"${extra_cmdline}"/g cumulusvx-root-$TIMESTAMP/boot/grub/grub.cfg
I updated the script and also added a default subtype creation and fixed some problems with loop dev mapping in VIRL >=1.3 (Ubuntu 16.04)
Thanks again for your hints!
Yes! In the subtype "config_file" is the location where the config from VMmaestro is stored. Due to "config_disk_type": "disk", this is stored as a file on a disk that is mounted (/dev/sdb1) in my script. The contents of the config file are then run. This is also the case for the default subtype and minimal config that is supplied with the script:
https://gogs.informatik.hs-fulda.de/srieger/virl-utils-hs-fulda/src/master/create-cumulusvx-image
Thanks for the hint regarding grub in cumulusvx >= 3.x! Actually, not only the file position has changed, also the content is different. To see the kernel boot log in the serial console, following line is correct:
sed -i.bak -e s/"${extra_cmdline} quiet"/"${extra_cmdline}"/g cumulusvx-root-$TIMESTAMP/boot/grub/grub.cfg
I updated the script and also added a default subtype creation and fixed some problems with loop dev mapping in VIRL >=1.3 (Ubuntu 16.04)
Thanks again for your hints!
Hello,
Thanks a lot for your work !
I have a little problem, when i try to add configuration in VMMaestro in a CumulusVX node, nothing happens after booting of instance.
By Example, when i use :
#!/bin/bash
useradd -m cisco -s /bin/bash
echo "cisco:cisco" | chpasswd
addgroup cisco sudo
i don't have any log but the bash script doesn't work...
I use virl 1.2.83 with cumulusVX 3.3.1. For import the image i have used your script.
Any idea what happen ?
Thanks
other thing, when i attempt to create image i have this error message :
*Injecting changes to use serial console and startup script to get switch config...
sed: can't read cumulusvx-boot-20170602211137/grub/grub.cfg: No such file or directory /!\
Unmounting cumulusvx-boot-20170602211137...
Unmounting cumulusvx-root-20170602211137...
loop deleted : /dev/loop1
i don't understand well this part of the script :
mkdir /virl-config
mount /dev/sdb1 /virl-config
chmod +x /virl-config/cumulusvx.sh
/virl-config/cumulusvx.sh >/var/log/virl-startup.log
What is doing cumulusvx.sh ?
I have found my error, it's about subtype "/cumumlusvx.sh" (no cloud-init)
For the error about grub.cfg not fund, solution :
sed -i.bak -e s/"console=tty0 quiet"/"console=tty0"/g cumulusvx-root-$TIMESTAMP/boot/grub/grub.cfg
Yes! In the subtype "config_file" is the location where the config from VMmaestro is stored. Due to "config_disk_type": "disk", this is stored as a file on a disk that is mounted (/dev/sdb1) in my script. The contents of the config file are then run. This is also the case for the default subtype and minimal config that is supplied with the script:
https://gogs.informatik.hs-fulda.de/srieger/virl-utils-hs-fulda/src/master/create-cumulusvx-image
Thanks for the hint regarding grub in cumulusvx >= 3.x! Actually, not only the file position has changed, also the content is different. To see the kernel boot log in the serial console, following line is correct:
sed -i.bak -e s/"${extra_cmdline} quiet"/"${extra_cmdline}"/g cumulusvx-root-$TIMESTAMP/boot/grub/grub.cfg
I updated the script and also added a default subtype creation and fixed some problems with loop dev mapping in VIRL >=1.3 (Ubuntu 16.04)
Thanks again for your hints!