Community discussions

MikroTik App
 
buzzdee
newbie
Topic Author
Posts: 35
Joined: Mon Apr 22, 2013 1:22 pm

CHR as XEN domU System ID

Wed Jul 13, 2016 2:28 pm

Hi folks,

I'm running CHR 6.35.4 as XEN full virtualized domU on Debian systems, Wheezy (v7) as well as Jessie (v8). I'm using the Kernels and XEN-tools provided by the distributions and the CHR raw-image.

The only real issue I'm having is, that every time I reboot the virtual machine, /system license system-id changes. Any ideas on how to avoid that? Its the only thing keeping me from buying some licenses of this otherwise very neat product. Below is the configuration of the domU.
# =====================================================================
# Example HVM guest configuration
# =====================================================================
#
# This is a fairly minimal example of what is required for an
# HVM guest. For a more complete guide see xl.cfg(5)

# This configures an HVM rather than PV guest
builder = "hvm"

# Guest name
name = "chr.hvm"

# 128-bit UUID for the domain as a hexadecimal number.
# Use "uuidgen" to generate one if required.
# The default behavior is to generate a new UUID each time the guest is started.
#uuid = "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"

# Enable Microsoft Hyper-V compatibile paravirtualisation /
# enlightenment interfaces. Turning this on can improve Windows guest
# performance and is therefore recommended
#viridian = 1

# Initial memory allocation (MB)
memory = 1024

# Maximum memory (MB)
# If this is greater than `memory' then the slack will start ballooned
# (this assumes guest kernel support for ballooning)
#maxmem = 512

# Number of VCPUS
vcpus = 2

# Network devices
# A list of 'vifspec' entries as described in
# docs/misc/xl-network-configuration.markdown
vif = [ 'model=e1000' ]

# Disk Devices
# A list of `diskspec' entries as described in
# docs/misc/xl-disk-configuration.txt
disk = [ 
    'file:/xen/test/chr-6.35.4.img,xvda,rw',
       ]

# Guest VGA console configuration, either SDL or VNC
#sdl = 1
#vnc = 1
Sincerely

BuzzDee
 
mmandrino
just joined
Posts: 20
Joined: Fri Jan 02, 2015 4:32 pm

Re: CHR as XEN domU System ID

Thu Jul 14, 2016 12:21 pm

Seems like CHR on XEN is not so popular - I am using the same, and managed to get bigger disk to place Dude on it, started to love it, but need to get a licence and also have a problem.

I don't have a new systemID with VM restart - acctualy I did system reboot from ROS. Do you mean after forced restart? Or after whole XEN server restart?

The issue I have with buying licence is that my system-id doesn't fit in to the field - its 2 characters too long. also its not in format AAAA-BBBB but ABCDEFGHIJ (10 char, no dash).

Can prepaid key be used for CHR?

Thank you
 
jarda
Forum Guru
Forum Guru
Posts: 7756
Joined: Mon Oct 22, 2012 4:46 pm

Re: CHR as XEN domU System ID

Thu Jul 14, 2016 12:41 pm

CHR has other than x86 licensing model. The licenses are not transferrable between these two.
 
buzzdee
newbie
Topic Author
Posts: 35
Joined: Mon Apr 22, 2013 1:22 pm

Re: CHR as XEN domU System ID

Thu Jul 14, 2016 10:04 pm

Hi,

it doesn't matter if I restart from RouterOS, do a restart from the dom0 using "xl restart" or forcefully restart by rebooting the dom0 hardware. Every time the CHR domU gets a new system ID.

From the infos I gathered yet, the harddisk is the key component that is checked to confirm the ROS installation hasn't been cloned or otherwise tampered with. What's the exact feature set that is checked is, of course, Mikrotiks secret. So I presume with my XEN Setup something disk related changes when I reboot. Unfortunately, in ROS there is no way to do a command line "fdisk" or "hdparm" to get a little more detailed info about the disk.

@mmandrino: Could you please tell me, what kind of disk image you are using?
 
mmandrino
just joined
Posts: 20
Joined: Fri Jan 02, 2015 4:32 pm

Re: CHR as XEN domU System ID

Tue Jul 19, 2016 2:49 pm

@buzzdee
I followed http://forum.mikrotik.com/viewtopic.php?t=98981
resized disk and it says: Created by XenCenter Disk Image Import in xen center
 
buzzdee
newbie
Topic Author
Posts: 35
Joined: Mon Apr 22, 2013 1:22 pm

Re: CHR as XEN domU System ID

Sat Jul 23, 2016 1:07 pm

Solved it!

Giving the domU a fixed UUID in its configuration file fixes the changing /system license system-id.
# 128-bit UUID for the domain as a hexadecimal number.
# Use "uuidgen" to generate one if required.
# The default behavior is to generate a new UUID each time the guest is started.
uuid = "1234abcd-abcd-1234-1234-1234abcdefgh"
@mmandrino: Thanks for the hint - playing with different image files made me mount some loop-devices, showing different uuids on each mount (due to changeing loop-devices) and thus pointing me in the right direction.

Who is online

Users browsing this forum: No registered users and 2 guests